/* Shared design tokens and accessible platform primitives. Layouts stay in their app stylesheets. */
:root{
 color-scheme:light;--empire-accent:#00a9ce;--empire-accent-strong:#007b98;--empire-tint:#e6f8fc;
 --empire-ink:#142129;--empire-muted:#62717a;--empire-surface:#fff;--empire-canvas:#f7f9fa;
 --empire-border:#e5ebee;--empire-shadow:0 4px 20px #10222e08;--empire-radius:20px;
 --bg:#f7f9fa;--bg2:#f0f4f6;--panel:#fff;--panel2:#f5f8fa;--line:#e3eaee;--line-strong:#c6e7ef;
 --text:#15252e;--muted:#60717b;--subtle:#627680;--orange:#008dab;--orange2:#00768e;--teal:#008dab;
 --success:#137a52;--warning:#946100;--danger:#b73546;--shadow:0 6px 24px #20323e09;--radius:20px;--radius-sm:12px;
 font-family:Arial,"Noto Sans Hebrew",sans-serif;accent-color:var(--empire-accent);
}
html{scroll-behavior:smooth;scroll-padding-block:88px}
body{color:var(--empire-ink);background:var(--empire-canvas);font-family:Arial,"Noto Sans Hebrew",sans-serif;text-rendering:optimizeLegibility}
*,*::before,*::after{box-sizing:border-box}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled,[aria-disabled="true"]{cursor:not-allowed}
:focus-visible{outline:3px solid var(--empire-accent-strong);outline-offset:3px}
input::placeholder,textarea::placeholder{color:#75818b;opacity:1}
img{max-width:100%}
[hidden]{display:none!important}
::selection{background:#bceefa;color:#142129}
.brand-lockup,.sidebar-brand,.pos-brand,.fin-brand{letter-spacing:normal}
.brand-lockup img,.sidebar-brand img,.pos-brand img,.fin-brand img{object-fit:contain}
.empire-workspace-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:18px 20px 22px;font-size:12px}
.empire-workspace-links a{display:inline-flex;padding:9px 12px;border:1px solid var(--empire-border);border-radius:999px;color:var(--empire-muted);background:#fff;text-decoration:none}
.empire-workspace-links a:hover{color:var(--empire-accent-strong);border-color:var(--empire-accent)}
/* Organization layouts formerly carried by the old brand override. */
.org-brand-strip{border:1px solid var(--line);border-radius:22px;padding:22px 28px;display:flex;align-items:center;gap:24px;background:#eaf8fb;overflow:hidden}
.org-brand-strip img{width:92px;height:92px;object-fit:contain;flex:none}
.org-brand-strip h2{margin:4px 0;font-size:28px;color:var(--text)}.org-brand-strip p{margin:0;color:var(--muted)}
.org-tabs{display:flex;gap:6px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:14px;background:#f3f7f9}
.org-tab{border:1px solid transparent;background:transparent;color:var(--muted);padding:11px 15px;border-radius:10px;white-space:nowrap}
.org-tab.active{color:#006f87;background:#dff5fa;border-color:#b6e8f1}
.org-business-select{max-width:280px}.org-inline-actions{display:flex;justify-content:flex-end;margin-bottom:12px}.org-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.profit-share-list{display:grid;gap:10px;margin:8px 0 10px}
.profit-share-row{display:grid;grid-template-columns:minmax(180px,1fr) 150px auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.profit-share-row select,.profit-share-row input{width:100%}
.org-profit-total{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:14px;border:1px solid #bee9ef;background:#e9f9fc}
.org-profit-total strong{font-size:1.15rem;color:#006c84}.org-profit-total strong.danger{color:var(--danger)}
.register-user-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.register-user-card{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer}
.register-user-card input{width:18px;height:18px}.register-user-card span{display:grid;gap:3px}.register-user-card small{color:var(--muted)}.register-user-card.disabled-scope{opacity:.65}
.empire-motion-toggle{border:1px solid var(--empire-border);border-radius:999px;background:#fff;color:var(--empire-muted);padding:8px 12px;font-size:12px;margin:8px 4px;min-height:36px}
.empire-motion-toggle[aria-pressed="true"]{background:#e7f8fc;color:#006f87}
@media(max-width:1200px){.org-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.org-brand-strip{padding:18px;gap:14px}.org-brand-strip img{width:62px;height:62px}.org-brand-strip h2{font-size:23px}.org-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-share-row{grid-template-columns:minmax(0,1fr) 100px}.profit-share-row .btn{grid-column:1/-1}.empire-workspace-links{margin-bottom:96px}input,select,textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html[data-reduce-motion] *,html[data-reduce-motion] *::before,html[data-reduce-motion] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media print{.empire-workspace-links,.empire-motion-toggle{display:none}body{background:white;color:black}}

/* Localized live clock; no per-second announcements for assistive technology. */
.empire-live-clock{display:flex;align-items:center;justify-content:flex-end;gap:12px;position:relative;z-index:1;min-height:31px;padding:6px 28px;border-bottom:1px solid #eaf0f3;background:#fff;color:#617781;font-size:12px;font-weight:500;line-height:1.4;direction:rtl;font-variant-numeric:tabular-nums}
.empire-clock-label{color:#00829f;font-weight:700}.empire-clock-time{min-width:62px;font-weight:750;color:#324e5d}.empire-clock-date{white-space:nowrap}.site-header>.empire-live-clock{padding-block:5px;background:#f8fcfd}
.empire-greeting{margin-inline-end:auto;padding-inline-end:12px;border-inline-end:1px solid #dcebef;color:#117a90;font-weight:750;white-space:nowrap}
@media(max-width:760px){.empire-greeting{flex-basis:100%;margin:0;padding:0;border:0;text-align:center;font-size:11px;line-height:1.35}}
@media(max-width:760px){.empire-live-clock{justify-content:center;padding:6px 12px;gap:10px;font-size:11px;min-height:29px}.empire-clock-time{min-width:58px}}

/* Browser installation and a brief non-blocking opening animation. */
.empire-install-button{margin-inline-start:auto;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 14px;border:1px solid #bbe5ee;border-radius:999px;background:#e8f8fc;color:#006f88;font-size:12px;font-weight:750;line-height:1.3;white-space:nowrap}.empire-install-button:hover{background:#d9f3fa;border-color:#68c9de}.empire-install-button:disabled{opacity:.55}.empire-install-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:30px;border:1px solid #d9e9ee;border-radius:24px;background:#fff;color:#263e49;box-shadow:0 25px 90px #173f4a33;text-align:start}.empire-install-dialog::backdrop{background:#14394760;backdrop-filter:blur(4px)}.empire-install-dialog h2{font-size:25px;margin:0 0 14px;line-height:1.3}.empire-install-dialog p{font-size:14px;line-height:1.7;color:#57727d;margin:0 0 14px}.empire-install-dialog ol{margin:16px 0;padding-inline-start:24px;font-size:14px;line-height:1.8}.empire-install-dialog li{padding-inline-start:4px;margin:8px 0}.empire-install-dialog .empire-install-note{font-size:12px;padding:13px;background:#f2f9fb;border-radius:12px;margin-top:18px}.empire-install-close{display:block;width:100%;min-height:46px;margin-top:20px;padding:11px 20px;border:0;border-radius:12px;background:#00a9ce;color:#073747;font-size:14px;font-weight:750}.empire-opening{position:fixed;inset:0;z-index:9998;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#f5fcfeeb;color:#0a788f;font-size:24px;font-weight:850;pointer-events:none;animation:empire-opening-fade .65s ease both}.empire-opening img{width:76px;height:76px;animation:empire-opening-mark .5s cubic-bezier(.2,.8,.3,1) both}.empire-opening span{letter-spacing:-.035em}@keyframes empire-opening-fade{0%,20%{opacity:1}100%{opacity:0}}@keyframes empire-opening-mark{from{transform:translateY(10px) scale(.94);opacity:.5}to{transform:translateY(0) scale(1);opacity:1}}@media(max-width:760px){.empire-live-clock{gap:8px;flex-wrap:wrap}.empire-live-clock .empire-clock-label{display:none}.empire-install-button{font-size:11px;padding:6px 10px;min-height:30px}.empire-install-dialog{padding:25px 22px}.empire-install-dialog h2{font-size:23px}.empire-opening img{width:64px;height:64px}.empire-opening{font-size:22px}}@media(prefers-reduced-motion:reduce){.empire-opening{display:none}}html[data-reduce-motion] .empire-opening{display:none}@media print{.empire-install-button,.empire-install-dialog,.empire-opening,.empire-live-clock{display:none!important}}

/* Owner team setup shortcuts use the same existing account and assignment forms. */
.empire-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px}.empire-team-card{display:flex;align-items:flex-start;flex-direction:column;gap:9px;text-align:start;padding:19px;border:1px solid #d9e9ef;border-radius:15px;background:#f4fbfd;color:#244853;min-height:104px}.empire-team-card:hover{background:#e7f8fc;border-color:#8dd5e6}.empire-team-card strong{font-size:15px;color:#08798f}.empire-team-card span{font-size:12px;line-height:1.6;color:#627d87}.empire-team-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;padding-top:16px;border-top:1px solid #e4edf1}.empire-team-links a{display:inline-flex;align-items:center;min-height:40px;padding:8px 13px;border:1px solid #dce7ec;border-radius:11px;background:#fff;color:#247489;text-decoration:none;font-size:12px}.empire-team-links a:hover{border-color:#00a9ce;background:#f0fbfd}@media(max-width:600px){.empire-team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.empire-team-card{padding:16px;min-height:112px}.empire-team-card strong{font-size:14px}.empire-team-links a{flex:1 1 140px;justify-content:center;text-align:center}}

/* Service availability is explicit and does not rely on Telegram presence. */
.support-overview{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}.support-overview h2{font-size:24px;margin:6px 0}.support-conversations{display:grid;gap:12px}.support-conversation{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px;border:1px solid var(--empire-line,#e3e9ed);border-radius:16px}.support-conversation>div:first-child{display:grid;gap:5px}.support-conversation small,.support-agent bdi{color:#657882}.support-agent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:20px}.support-agent{display:grid;gap:10px;padding:18px;border:1px solid #e3e9ed;border-radius:18px}.support-agent .badge{justify-self:start}.empire-support-dialog{width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #e3e9ed;border-radius:24px;padding:24px;background:#fff;color:#17232b;font-family:inherit;box-shadow:0 20px 80px #142c3533}.empire-support-dialog::backdrop{background:#112a3466;backdrop-filter:blur(5px)}.empire-support-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.empire-support-dialog h2{margin:4px 0 24px;font-size:24px}.empire-support-dialog h3{font-size:21px;margin:16px 0 8px}.empire-support-dialog p{line-height:1.7;color:#536872}.empire-support-dialog [data-support-content]{display:grid;justify-items:start;gap:12px}.empire-support-dialog [data-support-content]>.btn{width:100%;text-align:center;justify-content:center}.empire-support-dialog small{line-height:1.6;color:#697e88}.support-client-avatar{display:grid;place-items:center;width:60px;height:60px;background:#e2f9ff;border-radius:20px;color:#008dab;font-size:30px;font-weight:900}.empire-support-dialog :focus-visible{outline:3px solid #00a9ce;outline-offset:3px}
@media(max-width:600px){.support-overview{grid-template-columns:1fr}.support-conversation{align-items:stretch;flex-direction:column}.empire-support-dialog{padding:20px}}
.empire-support-dialog .btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:11px 16px;border:1px solid #dfE8ed;border-radius:14px;font:700 15px/1.4 inherit;color:#17232b;background:#f7fafb;text-decoration:none;cursor:pointer}.empire-support-dialog .btn.primary{background:#00a9ce;border-color:#00a9ce;color:#fff}.empire-support-dialog [data-dismiss]{font-size:22px;min-width:42px;padding:4px 10px}.empire-support-dialog button:disabled{opacity:.55;cursor:wait}
/* Signed support chat stays in the website; replies arrive through the platform. */
.empire-support-dialog.empire-web-chat{width:min(560px,calc(100% - 28px));padding:22px;overflow:hidden;background:var(--empire-surface,#fff);color:var(--empire-ink,#17232b);box-sizing:border-box;max-height:calc(100dvh - 28px)}.empire-web-chat h2{margin-bottom:12px}.support-chat-state{font-size:13px;line-height:1.7;padding:10px 13px;border-radius:12px;background:var(--empire-tint,#effaff);margin-bottom:12px}.support-chat-messages{height:min(36dvh,350px);min-height:140px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:10px 4px;scrollbar-width:thin}.support-chat-message{max-width:86%;align-self:flex-start;border:1px solid var(--empire-border,#e1ebef);border-radius:16px 16px 4px 16px;background:var(--empire-canvas,#f6f9fb);padding:11px 14px;min-width:110px;box-sizing:border-box}.support-chat-message.mine{align-self:flex-end;background:var(--empire-tint,#e9f9fe);border-color:#a4dfe9;border-radius:16px 16px 16px 4px}.support-chat-message .support-chat-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin:6px 0;color:inherit}.support-chat-sender{font-size:12px}.support-chat-message time{font-size:10px;color:var(--empire-muted,#697e88)}.support-chat-message .support-chat-delivery{display:block;font-size:10px;line-height:1.5}.support-chat-message.delivery-failed{border-color:#d68e78}.support-chat-message.delivery-failed .support-chat-delivery{color:#b84a29}.support-chat-compose{border-top:1px solid var(--empire-border,#e1ebef);padding-top:12px;margin-top:10px}.support-chat-compose label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.support-chat-compose textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:70px;max-height:120px;padding:11px;border:1px solid var(--empire-border,#d3e4eb);border-radius:12px;background:var(--empire-surface,#fff);color:inherit;font:inherit;font-size:14px}.support-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.support-compose-actions small{font-size:10px}.support-chat-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;border-top:1px solid var(--empire-border,#e1ebef);padding-top:12px;margin-top:12px}.support-chat-footer small{font-size:10px;max-width:280px}.support-chat-footer .btn{font-size:12px;white-space:nowrap}.empire-web-chat .support-chat-error{color:#b64429;font-size:13px;margin:7px 0;line-height:1.6}.empire-web-chat [hidden]{display:none!important}.support-chat-empty{font-size:13px;text-align:center;align-self:center;margin:auto!important}.empire-web-chat [data-chat-retry]{font-size:12px;min-height:32px;padding:6px 12px}.empire-web-chat .support-chat-footer [data-chat-restart]{white-space:normal}@media(max-width:520px){.empire-support-dialog.empire-web-chat{padding:16px;width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.support-chat-footer{align-items:flex-start}.support-chat-footer small{max-width:190px}.support-chat-messages{height:30dvh;min-height:110px}.support-compose-actions small{max-width:130px}}@media(max-height:600px){.empire-support-dialog.empire-web-chat{overflow:auto}.support-chat-messages{height:180px;min-height:100px}.support-chat-footer small{display:none}}
.empire-setup-suggestion{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap;padding:12px 18px;background:var(--empire-tint,#e9f9fd);color:var(--empire-ink,#173745);font-size:13px;border-bottom:1px solid var(--empire-border,#d4eaf0)}.empire-setup-suggestion a{color:var(--empire-accent-strong,#007b98);font-weight:800}.empire-setup-suggestion button{background:transparent;border:0;color:inherit;font:inherit;text-decoration:underline;padding:6px 10px;cursor:pointer}
