/* ==========================================================================
   EthioBucks — visual system
   Motif: the woven tibeb border of a netela, used as the edge of the things
   that matter (top bar, hero, login, footer). Everything else stays quiet.
   ========================================================================== */

:root {
	--eb-cotton: #ffffff;
	--eb-paper: #f3f5f0;
	--eb-ink: #172238;
	--eb-ink-2: #48526a;
	--eb-green: #0b7a4b;
	--eb-green-dk: #08603b;
	--eb-green-soft: #e3f1e9;
	--eb-saffron: #f2b705;
	--eb-saffron-soft: #fdf4d6;
	--eb-red: #c23a2b;
	--eb-red-soft: #fbe9e6;
	--eb-line: #dbe0d8;
	--eb-field: #c4ccc4;
	--eb-r-box: 14px;
	--eb-r-ctl: 8px;
	--eb-font: "Archivo", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--eb-am: "Noto Sans Ethiopic", "Archivo", system-ui, sans-serif;
	--eb-tibeb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16'%3E%3Crect width='40' height='16' fill='%23ffffff'/%3E%3Crect width='40' height='2' fill='%230B7A4B'/%3E%3Crect y='14' width='40' height='2' fill='%230B7A4B'/%3E%3Cpath d='M10 4l4 4-4 4-4-4z' fill='%23C23A2B'/%3E%3Cpath d='M30 4l4 4-4 4-4-4z' fill='%23F2B705'/%3E%3Cpath d='M20 6.5l1.5 1.5-1.5 1.5-1.5-1.5zM0 6.5l1.5 1.5L0 9.5-1.5 8zM40 6.5l1.5 1.5-1.5 1.5-1.5-1.5z' fill='%23172238'/%3E%3C/svg%3E");
}

/* ---------- Full-screen canvas (templates/app.php) ---------- */
.eb-canvas *, .eb-canvas *::before, .eb-canvas *::after { box-sizing: border-box; }
body.eb-canvas { margin: 0; background: var(--eb-paper); color: var(--eb-ink); font-family: var(--eb-font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.eb-canvas a { color: var(--eb-green); }
.eb-skip { position: absolute; left: -9999px; top: 8px; background: var(--eb-ink); color: #fff !important; padding: 8px 14px; border-radius: var(--eb-r-ctl); z-index: 100; }
.eb-skip:focus { left: 8px; }

.eb-topbar { background: var(--eb-cotton); position: relative; padding-bottom: 16px; }
.eb-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--eb-tibeb) repeat-x left center; }
.eb-topbar-in { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--eb-ink) !important; }
.eb-brand-logo { width: 44px; height: 44px; flex: none; display: block; filter: drop-shadow(0 1px 2px rgba(23, 34, 56, .25)); }
@media (max-width: 560px) { .eb-brand-logo { width: 38px; height: 38px; } }
.eb-brand-name { font-weight: 800; font-stretch: 125%; font-size: 1.25rem; letter-spacing: -.01em; }
.eb-brand-am { font-family: var(--eb-am); font-weight: 600; color: var(--eb-ink-2); font-size: .95rem; }
.eb-topnav { display: flex; align-items: center; gap: 18px; }
.eb-toplink { font-weight: 600; text-decoration: none; color: var(--eb-ink) !important; }
.eb-toplink:hover { color: var(--eb-green) !important; }
.eb-lang ul, .eb-lang .trp-language-switcher { margin: 0; }
@media (max-width: 560px) { .eb-brand-am { display: none; } .eb-topnav { gap: 12px; } }

.eb-main { min-height: 60vh; }
.eb-canvas .eb-app.is-member { padding: 24px 20px 40px; }

.eb-footer { position: relative; padding-top: 16px; background: var(--eb-cotton); margin-top: 48px; }
.eb-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--eb-tibeb) repeat-x left center; }
.eb-footer-in { max-width: 1160px; margin: 0 auto; padding: 22px 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--eb-ink-2); font-size: .92rem; }
.eb-footer-in p { margin: 0; }

/* ---------- App base ---------- */
.eb-app, .eb-console {
	color: var(--eb-ink);
	font-family: var(--eb-font);
	font-size: 16px;
	line-height: 1.55;
	max-width: 1160px;
	margin: 0 auto;
	box-sizing: border-box;
}
.eb-app.is-guest { max-width: none; }
.eb-app *, .eb-console * { box-sizing: border-box; }
.eb-app h1, .eb-app h2, .eb-app h3, .eb-app h4, .eb-console h2, .eb-console h3 { margin: 0 0 .5em; line-height: 1.2; color: var(--eb-ink); font-family: var(--eb-font); letter-spacing: -.005em; }
.eb-app h2, .eb-console h2 { font-size: 1.5rem; font-weight: 800; font-stretch: 112%; }
.eb-app h3, .eb-console h3 { font-size: 1.1rem; font-weight: 700; }
.eb-app h4 { font-size: .98rem; font-weight: 700; margin-top: 1.3em; }
.eb-app :focus-visible, .eb-console :focus-visible, .eb-canvas :focus-visible { outline: 3px solid var(--eb-saffron); outline-offset: 2px; }

/* ---------- Landing (logged-out homepage) ---------- */
.eb-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.eb-hero { background: var(--eb-cotton); }
.eb-hero-in { max-width: 1160px; margin: 0 auto; padding: 56px 20px 64px; display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .eb-hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 64px; padding: 80px 20px 88px; } }
.eb-hero-am { font-family: var(--eb-am); font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 4.9rem); line-height: 1.12; letter-spacing: 0; margin: 0 0 .25em; color: var(--eb-ink); }
.eb-hero-en { font-weight: 700; font-stretch: 125%; font-size: clamp(1.25rem, 2.6vw, 1.9rem); color: var(--eb-green); margin: 0 0 22px; letter-spacing: -.01em; }
.eb-hero-lead { font-size: 1.1rem; color: var(--eb-ink-2); max-width: 52ch; margin: 0 0 28px; }
.eb-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.eb-hero-proof { margin: 22px 0 0; color: var(--eb-ink-2); font-size: .95rem; padding-left: 14px; border-left: 3px solid var(--eb-saffron); }

.eb-hero-login { background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); padding: 40px 26px 26px; position: relative; overflow: hidden; scroll-margin-top: 24px; }
.eb-hero-login::before, .eb-auth::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--eb-tibeb) repeat-x left center; }
.eb-hero-login h2 { font-size: 1.3rem; }

.eb-band { padding: 64px 0; }
.eb-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.eb-sec-head h2 { margin: 0; }
.eb-sec-head p { margin: 0; color: var(--eb-ink-2); }

.eb-open { background: var(--eb-paper); }
.eb-ticker { list-style: none; margin: 0; padding: 0; background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); }
.eb-ticker li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--eb-line); }
.eb-ticker li:last-child { border-bottom: 0; }
.eb-ticker-pay { font-weight: 800; font-stretch: 125%; color: var(--eb-green); font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eb-ticker-title { font-weight: 600; min-width: 0; }
.eb-ticker-title small { display: block; color: var(--eb-ink-2); font-weight: 400; font-size: .85rem; }
.eb-ticker-left { color: var(--eb-ink-2); font-size: .88rem; white-space: nowrap; }
@media (max-width: 600px) { .eb-ticker li { grid-template-columns: 1fr auto; } .eb-ticker-pay { grid-column: 2; grid-row: 1; } .eb-ticker-title { grid-column: 1; grid-row: 1; } .eb-ticker-left { grid-column: 1 / -1; } }
.eb-open-cta { margin: 20px 0 0; }

.eb-how { background: var(--eb-cotton); }
.eb-how-title { margin-bottom: 28px !important; }
.eb-how-cols { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .eb-how-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.eb-how-col h3 { font-size: 1.15rem; padding-bottom: 12px; border-bottom: 3px solid var(--eb-ink); margin-bottom: 4px; }
.eb-steps { list-style: none; counter-reset: eb-step; margin: 0; padding: 0; }
.eb-steps li { counter-increment: eb-step; position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--eb-line); color: var(--eb-ink-2); }
.eb-steps li::before { content: counter(eb-step); position: absolute; left: 0; top: 12px; font-weight: 800; font-stretch: 125%; font-size: 2.1rem; line-height: 1; color: var(--eb-green); font-variant-numeric: tabular-nums; }
.eb-steps strong { display: block; color: var(--eb-ink); font-size: 1.02rem; margin-bottom: 2px; }

.eb-payout { background: var(--eb-paper); }
.eb-payout-in { display: grid; gap: 16px 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .eb-payout-in { grid-template-columns: auto auto 1fr; } }
.eb-payout h2 { margin: 0; }
.eb-payout p { margin: 0; color: var(--eb-ink-2); max-width: 56ch; }
.eb-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eb-methods li { padding: 8px 16px; border: 2px solid var(--eb-ink); border-radius: 999px; font-weight: 700; background: var(--eb-cotton); }

/* Auth pages (register, forgot, reset) */
.eb-auth { max-width: 460px; margin: 40px auto; background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); padding: 40px 26px 26px; position: relative; overflow: hidden; }
.eb-app.is-guest .eb-auth { margin: 40px 20px; }
@media (min-width: 520px) { .eb-app.is-guest .eb-auth { margin: 48px auto; } }
.eb-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 16px 0 0; font-size: .95rem; }
.eb-role-pick { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eb-role-pick legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.eb-role-card { position: relative; display: block; cursor: pointer; }
.eb-role-card input { position: absolute; opacity: 0; }
.eb-role-card span { display: block; padding: 14px; border: 2px solid var(--eb-line); border-radius: var(--eb-r-ctl); height: 100%; }
.eb-role-card small { display: block; color: var(--eb-ink-2); font-size: .82rem; margin-top: 2px; }
.eb-role-card input:checked + span { border-color: var(--eb-green); background: var(--eb-green-soft); }
.eb-role-card input:focus-visible + span { outline: 3px solid var(--eb-saffron); outline-offset: 2px; }

/* ---------- Member header ---------- */
.eb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 18px 20px; background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); margin-bottom: 18px; }
.eb-hello { font-weight: 800; font-stretch: 112%; font-size: 1.2rem; }
.eb-role { color: var(--eb-ink-2); font-size: .88rem; }
.eb-head-right { display: flex; align-items: center; gap: 20px; }
.eb-head-bal { text-align: right; }
.eb-head-bal span { display: block; font-size: .78rem; color: var(--eb-ink-2); }
.eb-head-bal strong { font-size: 1.3rem; font-weight: 800; font-stretch: 125%; color: var(--eb-green); font-variant-numeric: tabular-nums; }

/* ---------- Tabs and chips ---------- */
.eb-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--eb-line); margin-bottom: 20px; scrollbar-width: thin; }
.eb-tabs a { padding: 10px 14px; white-space: nowrap; text-decoration: none; color: var(--eb-ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; font-size: .95rem; }
.eb-tabs a:hover { color: var(--eb-ink); }
.eb-tabs a.is-active { color: var(--eb-ink); border-bottom-color: var(--eb-green); }
.eb-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--eb-saffron); color: var(--eb-ink); font-size: .75rem; font-weight: 700; text-align: center; }
.eb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.eb-chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--eb-field); text-decoration: none; color: var(--eb-ink); font-size: .9rem; background: var(--eb-cotton); }
.eb-chips a.is-active { background: var(--eb-ink); border-color: var(--eb-ink); color: #fff; }

/* ---------- Containers ---------- */
.eb-card { background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); padding: 20px; margin-bottom: 18px; }
.eb-grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 18px; }
.eb-grid-2 > .eb-card { margin-bottom: 0; }
@media (min-width: 820px) { .eb-grid-2 { grid-template-columns: 1fr 1fr; } .eb-new-task { grid-template-columns: 3fr 2fr; } }
.eb-row-3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .eb-row-3 { grid-template-columns: repeat(3, 1fr); } }

/* Stats: a flat strip, not a row of cards */
.eb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); overflow: hidden; }
.eb-stat { padding: 16px 20px; border-right: 1px solid var(--eb-line); }
.eb-stat:last-child { border-right: 0; }
.eb-stat.is-main { background: var(--eb-green-soft); }
.eb-stat-label { color: var(--eb-ink-2); font-size: .85rem; }
.eb-stat-value { font-size: 1.45rem; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.eb-stat.is-main .eb-stat-value { color: var(--eb-green-dk); }
.eb-stat-hint { color: var(--eb-ink-2); font-size: .8rem; }

/* ---------- Forms ---------- */
.eb-form { margin: 0; }
.eb-field { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.eb-field label, .eb-field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.eb-app input[type=text], .eb-app input[type=email], .eb-app input[type=tel], .eb-app input[type=password], .eb-app input[type=number], .eb-app input[type=url], .eb-app input[type=search], .eb-app select, .eb-app textarea,
.eb-console input[type=text], .eb-console input[type=email], .eb-console input[type=tel], .eb-console input[type=password], .eb-console input[type=number], .eb-console input[type=url], .eb-console input[type=search], .eb-console select, .eb-console textarea {
	width: 100%; max-width: none; padding: 10px 12px; border: 1px solid var(--eb-field); border-radius: var(--eb-r-ctl); font: inherit; font-size: 16px; background: var(--eb-cotton); color: var(--eb-ink); min-height: 46px; box-shadow: none; margin: 0;
}
.eb-app textarea, .eb-console textarea { min-height: 0; line-height: 1.45; }
.eb-app input:focus, .eb-app select:focus, .eb-app textarea:focus, .eb-console input:focus, .eb-console select:focus, .eb-console textarea:focus { outline: 0; border-color: var(--eb-green); box-shadow: 0 0 0 3px var(--eb-green-soft); }
.eb-app input[type=file] { width: 100%; padding: 12px; border: 1px dashed var(--eb-field); border-radius: var(--eb-r-ctl); background: var(--eb-paper); font: inherit; font-size: .92rem; }
.eb-help { color: var(--eb-ink-2); font-size: .83rem; margin: 5px 0 0; }
.eb-check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 6px 0 14px; cursor: pointer; }
.eb-check input { width: 18px; height: 18px; accent-color: var(--eb-green); margin: 0; flex: none; }
.eb-checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.eb-checks .eb-check { margin: 4px 0; }
.eb-readonly { padding: 10px 0; color: var(--eb-ink-2); }
.eb-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.eb-btn, .eb-canvas a.eb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; min-height: 44px; border-radius: var(--eb-r-ctl); border: 2px solid var(--eb-ink); background: var(--eb-cotton); color: var(--eb-ink); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background-color .15s, color .15s; }
.eb-btn:hover { background: var(--eb-ink); color: #fff; }
.eb-btn-primary, .eb-canvas a.eb-btn-primary { background: var(--eb-green); border-color: var(--eb-green); color: #fff; }
.eb-btn-primary:hover { background: var(--eb-green-dk); border-color: var(--eb-green-dk); color: #fff; }
.eb-btn-danger { background: var(--eb-red-soft); border-color: transparent; color: var(--eb-red); }
.eb-btn-danger:hover { background: var(--eb-red); color: #fff; }
.eb-btn-ghost { background: transparent; border-color: var(--eb-field); color: var(--eb-ink-2); }
.eb-btn-ghost:hover { background: var(--eb-paper); color: var(--eb-ink); }
.eb-btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.eb-btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.eb-btn:disabled { opacity: .6; cursor: progress; }
.eb-block { display: flex; width: 100%; }
.eb-inline { display: inline; margin: 0; }
.eb-actions { white-space: nowrap; }
.eb-actions .eb-btn, .eb-actions .eb-inline { margin: 2px; }
.eb-actions .eb-btn { min-height: 36px; padding: 6px 12px; font-size: .88rem; }

/* ---------- Notices, badges, text ---------- */
.eb-notice { padding: 12px 16px; border-radius: var(--eb-r-ctl); background: var(--eb-green-soft); margin-bottom: 16px; border-left: 4px solid var(--eb-green); color: var(--eb-ink); }
.eb-notice-error { background: var(--eb-red-soft); border-left-color: var(--eb-red); }
.eb-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--eb-paper); color: var(--eb-ink-2); white-space: nowrap; }
.eb-badge-approved, .eb-badge-active, .eb-badge-paid { background: var(--eb-green-soft); color: var(--eb-green-dk); }
.eb-badge-pending, .eb-badge-moderation, .eb-badge-paused { background: var(--eb-saffron-soft); color: #7a5a00; }
.eb-badge-rejected, .eb-badge-suspended { background: var(--eb-red-soft); color: var(--eb-red); }
.eb-muted { color: var(--eb-ink-2); font-size: .88rem; }
.eb-empty { text-align: center; padding: 40px 20px; color: var(--eb-ink-2); background: var(--eb-cotton); border: 1px dashed var(--eb-field); border-radius: var(--eb-r-box); margin-bottom: 18px; }
.eb-empty p { margin: 14px 0 0; }
.eb-pos { color: var(--eb-green-dk); }
.eb-neg { color: var(--eb-red); }

/* ---------- Worker tasks ---------- */
.eb-task-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 18px; }
.eb-task { background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.eb-task h3 { font-size: 1.02rem; margin: 0; flex: 1; }
.eb-task-top { display: flex; gap: 6px; flex-wrap: wrap; }
.eb-cat { font-size: .78rem; font-weight: 700; color: var(--eb-green-dk); background: var(--eb-green-soft); padding: 2px 10px; border-radius: 999px; }
.eb-sponsored { font-size: .78rem; font-weight: 700; color: #7a5a00; background: var(--eb-saffron-soft); padding: 2px 10px; border-radius: 999px; }
.eb-task-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; color: var(--eb-ink-2); font-size: .88rem; }
.eb-reward { color: var(--eb-green); font-weight: 800; font-stretch: 125%; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.eb-task-detail h2 { font-size: 1.4rem; margin-top: 10px; }
.eb-req { margin: 0 0 8px 1.2em; padding: 0; }
.eb-prose p { margin: 0 0 .7em; }
.eb-pager { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; }

/* Cost box */
.eb-cost { background: var(--eb-paper); border-radius: var(--eb-r-ctl); padding: 14px 16px; margin-bottom: 16px; }
.eb-cost > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.eb-cost strong { font-variant-numeric: tabular-nums; }
.eb-cost-total { border-top: 2px solid var(--eb-ink); margin-top: 6px; padding-top: 10px !important; font-size: 1.08rem; }
.eb-cost-warn { color: var(--eb-red); font-weight: 600; }
.eb-tips ol { margin: 0 0 0 1.2em; padding: 0; }
.eb-tips li { margin-bottom: 10px; color: var(--eb-ink-2); }
.eb-pay-to pre { background: var(--eb-saffron-soft); padding: 14px; border-radius: var(--eb-r-ctl); white-space: pre-wrap; font-size: 1.05rem; margin: 6px 0 14px; font-family: var(--eb-font); font-weight: 700; color: var(--eb-ink); border: 0; }

/* ---------- Tables and lists ---------- */
.eb-table-wrap { overflow-x: auto; }
.eb-card.eb-table-wrap { padding: 0; }
.eb-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0; border: 0; }
.eb-table th, .eb-table td { text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--eb-line); vertical-align: top; background: none; }
.eb-table th { color: var(--eb-ink-2); font-weight: 600; font-size: .82rem; background: var(--eb-paper); }
.eb-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eb-table tr:last-child td { border-bottom: 0; }
.eb-table tr.eb-total td { font-weight: 800; border-top: 2px solid var(--eb-ink); }
.eb-progress { height: 6px; background: var(--eb-line); border-radius: 3px; overflow: hidden; min-width: 90px; margin: 6px 0 4px; }
.eb-progress span { display: block; height: 100%; background: var(--eb-green); }
.eb-list { list-style: none; margin: 0; padding: 0; }
.eb-card.eb-list { padding: 0 20px; }
.eb-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--eb-line); }
.eb-list li:last-child { border-bottom: 0; }

/* ---------- Review ---------- */
.eb-bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.eb-bulk-bar .eb-check { margin: 0; }
.eb-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.eb-review-head .eb-check { margin: 0; }
.eb-proof-text { background: var(--eb-paper); padding: 12px 14px; border-radius: var(--eb-r-ctl); margin-bottom: 12px; word-break: break-word; }
.eb-files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.eb-file { display: inline-block; padding: 7px 14px; border: 1px solid var(--eb-field); border-radius: var(--eb-r-ctl); text-decoration: none; font-size: .88rem; font-weight: 600; }
.eb-review-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.eb-reject { display: flex; gap: 6px; flex: 1; min-width: 240px; margin: 0; }
.eb-reject input { flex: 1; min-height: 44px !important; }
.eb-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .93rem; margin-bottom: 12px; }
.eb-kv > span:nth-child(odd) { color: var(--eb-ink-2); }
.eb-review details { margin: 8px 0; }

/* ---------- Operator console ---------- */
.eb-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 18px; border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); overflow: hidden; background: var(--eb-cotton); }
.eb-todo-item { padding: 14px 18px; border-right: 1px solid var(--eb-line); text-decoration: none; color: var(--eb-ink-2) !important; }
.eb-todo-item:last-child { border-right: 0; }
.eb-todo-item strong { display: block; font-size: 1.6rem; font-weight: 800; font-stretch: 112%; color: var(--eb-ink); }
.eb-todo-item.has-items { background: var(--eb-saffron-soft); }
.eb-checks-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: .92rem; }
.eb-checks-list li { padding: 4px 0 4px 26px; position: relative; }
.eb-checks-list li.ok::before { content: "✓"; position: absolute; left: 4px; color: var(--eb-green); font-weight: 700; }
.eb-checks-list li.bad { color: var(--eb-red); }
.eb-checks-list li.bad::before { content: "✗"; position: absolute; left: 4px; font-weight: 700; }
.eb-search { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.eb-search input { flex: 2; min-width: 180px; }
.eb-search select { flex: 1; min-width: 130px; width: auto !important; }
.eb-console details > summary { cursor: pointer; }
.eb-console details > form { margin-top: 14px; }
.wp-admin .eb-console { margin: 16px 0; max-width: 1200px; }

@media (prefers-reduced-motion: reduce) { .eb-btn { transition: none; } }

/* Fixes */
.eb-app [hidden], .eb-console [hidden] { display: none !important; }
.eb-canvas a.eb-btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.eb-steps strong { font-weight: 700; }
.eb-grid-2.eb-new-task, .eb-grid-2.eb-task-detail { align-items: start; }
.eb-app strong, .eb-app b, .eb-console strong { font-weight: 700; }
@media (max-width: 600px) {
	.eb-app .eb-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px 4px; scrollbar-width: none; }
	.eb-app .eb-chips a { white-space: nowrap; flex: none; }
	.eb-head-right { width: 100%; justify-content: space-between; }
	.eb-head-bal { text-align: left; }
}

/* Language switch (EN / አማ) */
.eb-langswitch { display: inline-flex; border: 2px solid var(--eb-ink); border-radius: 999px; overflow: hidden; font-weight: 700; font-size: .85rem; line-height: 1; }
.eb-langswitch a { padding: 7px 12px; text-decoration: none; color: var(--eb-ink) !important; }
.eb-langswitch a + a { border-left: 2px solid var(--eb-ink); }
.eb-langswitch a.is-active { background: var(--eb-ink); color: #fff !important; }
.eb-langswitch a[lang="am"] { font-family: var(--eb-am); }
.eb-inline-lang { float: right; margin: 0 0 12px 12px; }
.eb-app:lang(am) { line-height: 1.65; }
.eb-app:lang(am) .eb-btn, .eb-canvas:lang(am) .eb-btn { font-family: var(--eb-am); }
@media (max-width: 420px) { .eb-topnav .eb-toplink { display: none; } }

/* ---------- Staff console additions ---------- */
.eb-chip-n { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--eb-paper); color: var(--eb-ink-2); font-size: .75rem; font-weight: 700; text-align: center; }
.eb-chips a.is-active .eb-chip-n { background: rgba(255,255,255,.2); color: #fff; }
.eb-chips-sub { margin-top: -6px; }
.eb-chips-sub a { font-size: .82rem; padding: 4px 12px; }
.eb-amount { font-size: 1.15rem; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.eb-split { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .eb-split { grid-template-columns: minmax(0, 1fr) 220px; } }
.eb-receipt { display: block; border: 1px solid var(--eb-line); border-radius: var(--eb-r-ctl); overflow: hidden; background: var(--eb-paper); }
.eb-receipt img { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.eb-noreceipt { padding: 30px 12px; text-align: center; color: var(--eb-ink-2); background: var(--eb-paper); border-radius: var(--eb-r-ctl); font-size: .88rem; }
.eb-stack { flex-direction: column; align-items: stretch; }
.eb-stack .eb-reject { min-width: 0; flex-wrap: wrap; }
.eb-inline-field { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--eb-ink-2); white-space: nowrap; }
.eb-inline-field input { width: 130px !important; flex: none; }
.eb-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eb-facts li { padding: 4px 10px; border-radius: 999px; background: var(--eb-paper); font-size: .84rem; color: var(--eb-ink-2); }
.eb-facts li.eb-warn { background: var(--eb-saffron-soft); color: #7a5a00; font-weight: 700; }
.eb-badge-staff { background: #e6e9f2; color: var(--eb-ink); }
.eb-stats-sm .eb-stat { padding: 10px 16px; }
.eb-stats-sm .eb-stat-value { font-size: 1.15rem; }
.eb-inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.eb-inline-row select { width: auto !important; min-width: 150px; }
.eb-perm-list { list-style: none; margin: 0; padding: 0; }
.eb-perm-list li { padding: 6px 0; border-bottom: 1px solid var(--eb-line); font-size: .93rem; }
.eb-perm-list li:last-child { border-bottom: 0; }
.eb-perm-list li.off { color: var(--eb-ink-2); opacity: .7; }
.eb-perm-list li span { display: inline-block; width: 18px; font-weight: 800; color: var(--eb-green); }
.eb-perm-grid { display: grid; gap: 2px 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .eb-perm-grid { grid-template-columns: 1fr 1fr; } }
.eb-perm-grid .eb-check { margin: 6px 0; align-items: flex-start; }
.eb-roles .eb-perm-col { text-align: center; font-size: .8rem; white-space: nowrap; }
.eb-yes { color: var(--eb-green); font-weight: 800; }
.eb-no { color: var(--eb-field); }
.eb-copy { user-select: all; }

/* ---------- Homepage motion graphic: task reel ---------- */
.eb-reel { margin: 30px 0 0; max-width: 460px; }
.eb-reel-cap { margin: 0 0 10px; font-size: .9rem; color: var(--eb-ink-2); font-weight: 600; }
.eb-reel-list { list-style: none; margin: 0; padding: 0; position: relative; height: 104px; }
.eb-reel-item { position: absolute; inset: 0; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px 20px; background: var(--eb-cotton); border: 1px solid var(--eb-line); border-radius: var(--eb-r-box); box-shadow: 0 1px 0 var(--eb-line); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.eb-reel-item.is-on { opacity: 1; transform: none; z-index: 2; }
.eb-reel-item.is-out { opacity: 0; transform: translateY(-18px) scale(.98); }
.eb-reel-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--eb-green); background: var(--eb-green-soft); box-shadow: inset 0 0 0 3px var(--eb-cotton), 0 0 0 2px var(--eb-saffron); }
.eb-reel-item.is-on .eb-reel-icon svg { animation: eb-pop .6s cubic-bezier(.2,.8,.2,1.4) both .1s; }
.eb-reel-text { min-width: 0; }
.eb-reel-text strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.eb-reel-text small { display: block; color: var(--eb-ink-2); font-size: .88rem; line-height: 1.35; margin-top: 2px; }
.eb-reel-pay { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-stretch: 112%; color: var(--eb-green-dk); white-space: nowrap; font-size: .95rem; opacity: 0; transform: translateX(8px); }
.eb-reel-pay-soon { color: var(--eb-ink-2); font-weight: 700; font-stretch: 100%; font-size: .85rem; }
.eb-reel-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--eb-green); color: #fff; font-size: .8rem; }
.eb-reel-item.is-on .eb-reel-pay { animation: eb-pay .45s cubic-bezier(.2,.8,.2,1.3) forwards 2.25s; }
.eb-reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--eb-paper); }
.eb-reel-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--eb-green), var(--eb-saffron)); }
.eb-reel-item.is-on .eb-reel-bar span { animation: eb-fill 2.1s cubic-bezier(.4,0,.2,1) forwards .2s; }
.eb-reel-dots { display: flex; gap: 6px; margin-top: 10px; }
.eb-reel-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--eb-line); transition: width .3s, background-color .3s; }
.eb-reel-dots span.is-on { width: 18px; background: var(--eb-green); }
@keyframes eb-fill { to { width: 100%; } }
@keyframes eb-pay { to { opacity: 1; transform: none; } }
@keyframes eb-pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 480px) {
	.eb-reel-list { height: 128px; }
	.eb-reel-item { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; }
	.eb-reel-icon { width: 48px; height: 48px; }
	.eb-reel-pay { grid-column: 2; justify-self: start; }
}
/* No animation wanted: show every type as a calm static list. */
@media (prefers-reduced-motion: reduce) {
	.eb-reel-list { height: auto; display: grid; gap: 8px; }
	.eb-reel-item, .eb-reel-item.is-out { position: static; opacity: 1; transform: none; transition: none; padding: 12px 14px; }
	.eb-reel-item .eb-reel-pay { opacity: 1; transform: none; animation: none !important; }
	.eb-reel-item .eb-reel-icon svg { animation: none !important; }
	.eb-reel-bar, .eb-reel-dots, .eb-reel-pay-soon { display: none; }
}

/* ---------- Rotating homepage claims ---------- */
.eb-hero-proof { padding-left: 14px; border-left: 4px solid var(--eb-saffron); }
.eb-hero-proof ul { list-style: none; margin: 0; padding: 0; position: relative; height: 1.6em; overflow: hidden; }
.eb-hero-proof li { position: absolute; left: 0; right: 0; top: 0; font-weight: 800; font-stretch: 112%; font-size: 1.1rem; color: var(--eb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.eb-hero-proof li.is-on { opacity: 1; transform: none; }
.eb-hero-proof li.is-out { opacity: 0; transform: translateY(-100%); }
.eb-hero-proof li:lang(am), .eb-app:lang(am) .eb-hero-proof li { font-family: var(--eb-am); }
@media (max-width: 480px) { .eb-hero-proof li { font-size: 1rem; white-space: normal; } .eb-hero-proof ul { height: 2.8em; } }
@media (prefers-reduced-motion: reduce) {
	.eb-hero-proof ul { height: auto; }
	.eb-hero-proof li, .eb-hero-proof li.is-out { position: static; opacity: 1; transform: none; transition: none; padding: 2px 0; white-space: normal; }
}

.eb-sync-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* Client approval */
.eb-badge-pending { background: var(--eb-saffron-soft); color: #7a5a00; }
.eb-queue { border-color: var(--eb-saffron); }
.eb-queue h3 { margin: 0; }
.eb-queue-row { display: grid !important; grid-template-columns: auto minmax(0,1fr); gap: 6px 12px; align-items: start !important; }
.eb-queue-row .eb-check { margin: 4px 0 0; }
.eb-queue-row .eb-review-actions { grid-column: 2; margin-top: 0; }
@media (min-width: 900px) { .eb-queue-row { grid-template-columns: auto minmax(0,1fr) minmax(360px, auto); } .eb-queue-row .eb-review-actions { grid-column: 3; justify-content: flex-end; } }
.eb-waiting { display: flex; gap: 18px; align-items: flex-start; border-color: var(--eb-saffron); }
.eb-waiting-icon { font-size: 2rem; line-height: 1; }
.eb-waiting h2 { font-size: 1.3rem; }

.eb-locked { opacity: .6; cursor: not-allowed; }

/* Messages and invites */
.eb-aud { display: grid; gap: 2px 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .eb-aud { grid-template-columns: 1fr 1fr; } }
.eb-aud .eb-check { margin: 5px 0; }
.eb-ph { list-style: none; margin: 0 0 12px; padding: 0; }
.eb-ph li { padding: 4px 0; font-size: .92rem; }
.eb-ph code { background: var(--eb-paper); padding: 2px 6px; border-radius: 4px; margin-right: 6px; }
.eb-invite { border-color: var(--eb-saffron); }
.eb-invite-lead { font-size: 1.1rem; font-weight: 700; color: var(--eb-green-dk); }
.eb-copyrow { display: flex; gap: 8px; margin-top: 6px; }
.eb-copyrow input { flex: 1; min-width: 0; font-size: .92rem !important; }
.eb-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.eb-invited { border-left-color: var(--eb-saffron); background: var(--eb-saffron-soft); }

/* Accounts */
.eb-acc-title { font-size: 1.15rem; margin: 6px 0 12px; }
.eb-acc-title .eb-muted { font-weight: 400; font-size: .9rem; margin-left: 6px; }
.eb-inline-field { display: inline-flex; align-items: center; gap: 6px; }
.eb-inline-field span { font-size: .85rem; color: var(--eb-muted, #666); }
.eb-table.eb-fin td:first-child { width: 70%; }
.eb-monthly td, .eb-monthly th { font-size: .88rem; }
.eb-statement { margin-bottom: 14px; }
.eb-stat.is-main { outline: 2px solid var(--eb-green); }
@media print {
	body * { visibility: hidden; }
	.eb-accounts, .eb-accounts * { visibility: visible; }
	.eb-accounts { position: absolute; left: 0; top: 0; width: 100%; }
	.eb-noprint, .eb-accounts .eb-noprint * { display: none !important; }
	.eb-card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
	.eb-table-wrap { overflow: visible !important; }
	a { color: inherit; text-decoration: none; }
}
.eb-stat.eb-stat-neg { outline-color: var(--eb-red); background: #fdf1f0; }
.eb-stat.eb-stat-neg .eb-stat-value { color: var(--eb-red); }
.eb-monthly td:first-child, .eb-monthly th:first-child { white-space: nowrap; }
.eb-printonly { display: none; }
@media print { .eb-printonly { display: block; margin-bottom: 8px; font-size: .9rem; } }
.eb-wd-preview { margin: -4px 0 12px; font-weight: 600; color: var(--eb-green); }

/* Automatic emails */
.eb-auto { padding: 0; margin-bottom: 12px; }
.eb-auto > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; flex-wrap: wrap; }
.eb-auto > summary::-webkit-details-marker { display: none; }
.eb-auto-title { display: flex; flex-direction: column; gap: 2px; }
.eb-auto-title .eb-muted { font-size: .85rem; }
.eb-auto-meta { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.eb-auto[open] > summary { border-bottom: 1px solid var(--eb-field); }
.eb-auto-form, .eb-auto .eb-review-actions { padding: 0 20px; }
.eb-auto .eb-review-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.eb-auto .eb-review-actions form { margin: 0; }
.eb-auto-form { padding-top: 16px; }
.eb-auto-form > .eb-btn-primary { margin: 4px 0 14px; }

/* Hot jobs */
.eb-hot { background: var(--eb-saffron-soft); }
.eb-app .eb-hot { background: none; padding: 0 0 24px; }
.eb-app .eb-hot .eb-wrap { padding: 0; max-width: none; }
.eb-hot h2 { display: inline-flex; align-items: center; gap: 8px; }
.eb-hot-flame { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--eb-red); color: #fff; }
.eb-hot-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .eb-hot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .eb-hot-grid { grid-template-columns: repeat(3, 1fr); } }
.eb-hot-card { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "icon pay" "icon title" "meta meta" "go go"; column-gap: 12px; row-gap: 4px; padding: 16px 18px; background: var(--eb-cotton); border: 1px solid var(--eb-line); border-left: 4px solid var(--eb-red); border-radius: var(--eb-r-box); text-decoration: none; color: var(--eb-ink) !important; transition: transform .15s ease, box-shadow .15s ease; }
.eb-hot-card:hover, .eb-hot-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(23, 34, 56, .1); }
.eb-hot-icon { grid-area: icon; width: 44px; height: 44px; border-radius: 12px; background: var(--eb-saffron-soft); color: var(--eb-ink); display: grid; place-items: center; align-self: start; }
.eb-hot-icon svg { width: 24px; height: 24px; }
.eb-hot-pay { grid-area: pay; font-size: 1.35rem; font-weight: 800; color: var(--eb-green-dk); font-variant-numeric: tabular-nums; }
.eb-hot-title { grid-area: title; font-weight: 600; line-height: 1.35; }
.eb-hot-meta { grid-area: meta; font-size: .85rem; color: var(--eb-ink-2); margin-top: 6px; }
.eb-hot-go { grid-area: go; font-weight: 700; color: var(--eb-green); margin-top: 8px; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .eb-hot-card { transition: none; } .eb-hot-card:hover { transform: none; } }
.eb-bonus { font-style: normal; font-size: .78em; font-weight: 700; color: #fff; background: var(--eb-red); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.eb-hot-tag { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--eb-red); }
.eb-hot-tag::before { content: "🔥 "; }
.eb-promote { display: inline-block; }
.eb-promote > summary { list-style: none; display: inline-flex; }
.eb-promote > summary::-webkit-details-marker { display: none; }
.eb-promote[open] { display: block; margin: 8px 0; padding: 12px; background: var(--eb-saffron-soft); border-radius: var(--eb-r-ctl); }
.eb-promote-form { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eb-promote-form p { flex-basis: 100%; margin: 0; }
.eb-hot-admin { border-left: 4px solid var(--eb-red); }
.eb-topnav .eb-btn, .eb-topnav a { white-space: nowrap; }
@media (max-width: 420px) {
	.eb-brand { gap: 8px; }
	.eb-brand-logo { width: 34px; height: 34px; }
	.eb-brand-name { font-size: 1.05rem; }
	.eb-topnav { gap: 8px; }
	.eb-topnav .eb-btn { padding-left: 12px; padding-right: 12px; }
}
.eb-social { display: inline-flex; align-items: center; gap: 6px; }
.eb-social svg { flex: none; }
/* Legal pages */
.eb-legal { max-width: 760px; margin: 24px auto; padding: 28px 32px; line-height: 1.65; }
.eb-legal h1 { margin-top: 0; font-size: 1.7rem; }
.eb-legal h2 { font-size: 1.12rem; margin: 22px 0 6px; }
.eb-legal ul, .eb-legal ol { padding-left: 22px; }
.eb-legal li { margin: 4px 0; }
.eb-legal-back { margin-top: 26px; }
.eb-delete { margin-top: 18px; border-left: 4px solid var(--eb-red); }
@media (max-width: 560px) { .eb-legal { padding: 20px 18px; margin: 12px 0; } }
.eb-btn-wa { background: #25d366; border-color: #25d366; color: #fff !important; }
.eb-social-admin { border-left: 4px solid #229ed9; }
.eb-task-invite { max-width: 1160px; margin: 16px auto 0; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: var(--eb-saffron-soft); border: 1px solid var(--eb-saffron); border-radius: var(--eb-r-box); }
.eb-task-invite > div:first-child { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.eb-task-invite-cta { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1200px) { .eb-task-invite { margin: 16px 20px 0; } }

/* Install-the-app pop-up */
.eb-install { position: fixed; left: 12px; right: 12px; bottom: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9999; max-width: 460px; margin: 0 auto; background: var(--eb-cotton); color: var(--eb-ink); border: 1px solid var(--eb-line); border-top: 4px solid var(--eb-green); border-radius: var(--eb-r-box); box-shadow: 0 14px 40px rgba(23, 34, 56, .28); padding: 16px 16px 14px; transform: translateY(130%); opacity: 0; transition: transform .25s ease, opacity .25s ease; font-family: var(--eb-font); }
.eb-install.is-open { transform: translateY(0); opacity: 1; }
.eb-install-head { display: flex; gap: 12px; align-items: center; padding-right: 28px; }
.eb-install-head img { width: 56px; height: 56px; flex: none; border-radius: 50%; }
.eb-install-head strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.eb-install-head p { margin: 2px 0 0; color: var(--eb-ink-2); font-size: .9rem; line-height: 1.4; }
.eb-install-steps { margin: 12px 0 0; font-size: .92rem; line-height: 1.5; }
.eb-install-share { display: inline-flex; vertical-align: middle; color: #1a73e8; margin: 0 2px; }
.eb-install-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.eb-install-actions .eb-btn-primary { flex: 1 1 auto; justify-content: center; }
.eb-install-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--eb-ink-2); cursor: pointer; border-radius: 50%; }
.eb-install-x:focus-visible { outline: 2px solid var(--eb-green); }
@media (prefers-reduced-motion: reduce) { .eb-install { transition: none; } }

/* Homepage: announcement bar, FAQ, custom sections */
.eb-announce { padding: 10px 0; font-weight: 600; font-size: .95rem; text-align: center; }
.eb-announce .eb-wrap { padding-top: 0; padding-bottom: 0; }
.eb-announce a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.eb-announce-green { background: var(--eb-green); color: #fff; }
.eb-announce-gold { background: var(--eb-saffron); color: var(--eb-ink); }
.eb-announce-red { background: var(--eb-red); color: #fff; }
.eb-announce-dark { background: var(--eb-ink); color: #fff; }
.eb-faq { background: var(--eb-cotton); }
.eb-faq h2 { margin-bottom: 18px; }
.eb-faq-item { border-bottom: 1px solid var(--eb-line); padding: 4px 0; max-width: 820px; }
.eb-faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.eb-faq-item summary::-webkit-details-marker { display: none; }
.eb-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--eb-green); }
.eb-faq-item[open] summary::after { content: "–"; }
.eb-faq-item > div { color: var(--eb-ink-2); padding: 0 0 12px; }
.eb-custom-light { background: var(--eb-paper); }
.eb-custom-white { background: var(--eb-cotton); }
.eb-custom-green { background: var(--eb-green); color: #fff; }
.eb-custom-dark { background: var(--eb-ink); color: #fff; }
.eb-custom-green .eb-prose, .eb-custom-dark .eb-prose { color: rgba(255, 255, 255, .9); }
.eb-custom-green .eb-btn-primary { background: #fff; color: var(--eb-green-dk) !important; border-color: #fff; }
.eb-custom-in { display: grid; gap: 24px 48px; align-items: center; }
.eb-custom.has-image .eb-custom-in { grid-template-columns: 1fr; }
@media (min-width: 820px) { .eb-custom.has-image .eb-custom-in { grid-template-columns: 5fr 7fr; } }
.eb-custom-img { width: 100%; height: auto; border-radius: var(--eb-r-box); display: block; }
.eb-custom h2 { margin-top: 0; }

/* Homepage editor */
.eb-home-sec > summary { cursor: pointer; padding: 4px 0; }
.eb-home-body { margin-top: 14px; }
.eb-home-pair { display: grid; grid-template-columns: 1fr; gap: 6px 14px; padding: 10px 0; border-bottom: 1px dashed var(--eb-line); }
@media (min-width: 820px) { .eb-home-pair { grid-template-columns: 200px 1fr 1fr; align-items: start; } }
.eb-home-label { font-weight: 600; font-size: .92rem; padding-top: 6px; }
.eb-home-lang { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--eb-ink-2); }
.eb-home-lang input, .eb-home-lang textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; color: var(--eb-ink); padding: 8px 10px; border: 1px solid var(--eb-field); border-radius: var(--eb-r-ctl); background: #fff; }
.eb-home-lang input::placeholder, .eb-home-lang textarea::placeholder { color: #9aa1ad; }
.eb-home-custom, .eb-home-faq { border: 1px solid var(--eb-line); border-radius: var(--eb-r-ctl); padding: 8px 14px 12px; margin: 0 0 14px; }
.eb-home-custom legend, .eb-home-faq legend { font-weight: 700; padding: 0 6px; }
.eb-home-thumb { display: block; max-width: 180px; max-height: 110px; margin: 8px 0 4px; border-radius: 6px; }
.eb-home-order input.eb-order { width: 80px; }
.eb-home-save { position: sticky; bottom: 0; background: var(--eb-paper); padding: 12px 0; margin: 0; z-index: 5; }
.eb-danger-text { color: var(--eb-red); }
.eb-app .eb-custom-green h2, .eb-app .eb-custom-dark h2, .eb-custom-green h2, .eb-custom-dark h2 { color: #fff; }
.eb-app .eb-custom-green .eb-btn.eb-btn-primary, .eb-custom-green .eb-btn.eb-btn-primary { background: #fff !important; border-color: #fff !important; color: var(--eb-green-dk) !important; }
.eb-app .eb-custom-dark .eb-btn.eb-btn-primary { background: var(--eb-saffron) !important; border-color: var(--eb-saffron) !important; color: var(--eb-ink) !important; }
