:root{--ok:#178448;--bg:#F7F7ED;--sf:#fff;--bd:#E3EADF;--bg2:#EAF4EE;--ol:#B9E26B;--ol2:#A6D24F;--ac:#2B86B8;--on:#1F3A12;--br:#1E3A4C;--mu:#5F7C8E;--rd:#E5645A;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);color-scheme:light}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#10222C;--sf:#18313F;--bd:#27485A;--bg2:#1D3B4B;--ol:#B9E26B;--ol2:#A6D24F;--ac:#7CC4EE;--on:#1F3A12;--br:#EAF5FB;--mu:#9DBBCB;--rd:#F08A82;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#10222C;--sf:#18313F;--bd:#27485A;--bg2:#1D3B4B;--ol:#B9E26B;--ol2:#A6D24F;--ac:#7CC4EE;--on:#1F3A12;--br:#EAF5FB;--mu:#9DBBCB;--rd:#F08A82;color-scheme:dark}
:root[data-palette="classic"]{--bg:#FBFBF1;--sf:#fff;--bd:#E3EADF;--bg2:#EAF4EE;--ol:#B9E26B;--ol2:#A6D24F;--ac:#2B86B8;--on:#1F3A12;--br:#1E3A4C;--mu:#5F7C8E;--rd:#E5645A}
 :root[data-palette="mono"]{--bg:#eff0f1;--sf:#fff;--bd:#d8dadd;--bg2:#e8eaed;--ol:#17191c;--ol2:#30343a;--ac:#17191c;--on:#fff;--br:#202327;--mu:#737980;--rd:#b84b4b}
:root[data-palette="green"]{--bg:#f2f7f0;--sf:#fff;--bd:#d7e5d5;--bg2:#e2f0df;--ol:#171b18;--ol2:#29352d;--ac:#398b59;--on:#fff;--br:#26372d;--mu:#718477;--rd:#d66b65}
:root[data-palette="autumn"]{--bg:#fff7ed;--sf:#fffdf9;--bd:#ead8c4;--bg2:#f7e6d3;--ol:#d97728;--ol2:#bd5c1e;--ac:#b95e24;--on:#fff;--br:#4a3024;--mu:#8a7060;--rd:#b94c42}
:root[data-palette="spring"]{--bg:#fff5f6;--sf:#fff;--bd:#efd5dc;--bg2:#f9e4e9;--ol:#d98da1;--ol2:#c77990;--ac:#b85f7c;--on:#fff;--br:#513642;--mu:#987b87;--rd:#c85b67}
:root[data-theme="dark"][data-palette="mono"]{--bg:#17191c;--sf:#22262b;--bd:#383d44;--bg2:#2b3036;--ol:#f1f2f3;--ol2:#d9dcdf;--ac:#f1f2f3;--on:#17191c;--br:#f1f2f3;--mu:#aeb4bc;--rd:#f18b86}
:root[data-theme="dark"][data-palette="green"]{--bg:#142019;--sf:#1d2c22;--bd:#354b3a;--bg2:#263b2d;--ol:#83c99b;--ol2:#6fb487;--ac:#83c99b;--on:#0f1c14;--br:#e7f2e9;--mu:#a4b9a9;--rd:#f18b86}
:root[data-theme="dark"][data-palette="autumn"]{--bg:#261b15;--sf:#34251c;--bd:#594332;--bg2:#493326;--ol:#e18b43;--ol2:#c96d2b;--ac:#f0a466;--on:#24170f;--br:#fff0df;--mu:#c4a58d;--rd:#ff9388}
:root[data-theme="dark"][data-palette="spring"]{--bg:#281b22;--sf:#382630;--bd:#5a3b4b;--bg2:#4a3040;--ol:#d98da1;--ol2:#c77990;--ac:#f0a9bd;--on:#281b22;--br:#fff0f4;--mu:#c5a4b1;--rd:#ff9a9a}
:root[data-theme="dark"][data-palette="classic"]{--bg:#10222C;--sf:#18313F;--bd:#27485A;--bg2:#1D3B4B;--ol:#B9E26B;--ol2:#A6D24F;--ac:#7CC4EE;--on:#1F3A12;--br:#EAF5FB;--mu:#9DBBCB;--rd:#F08A82}

/* Petly system states */
html:has(.petly-state-screen),body:has(.petly-state-screen){background:var(--bg)!important;background-image:none!important}
body:has(.petly-state-screen)::before,body:has(.petly-state-screen)::after{display:none!important}
#app:has(>.petly-state-screen){background:none!important;min-height:0!important;padding:20px!important;max-width:none!important;display:grid;place-items:center;flex:1}
body:has(#app>.petly-state-screen){min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body:has(#app>.petly-state-screen) #ft:empty{display:none!important}
.petly-state-screen{width:100%;min-height: min(55vh,420px);display:grid;place-items:center;box-sizing:border-box;padding:16px 0;text-align:center;color:var(--br)}
.petly-state-card{width:min(100%,420px);box-sizing:border-box;background:var(--sf);border:1px solid var(--bd);border-radius:26px;padding:28px 22px;line-height:1.9;box-shadow:0 8px 30px #00000008}
.petly-state-card h2{font-size:1.25rem;margin:8px 0!important;color:var(--br)}.petly-state-card p{color:var(--mu);margin:8px 0 18px}.petly-state-art{display:block;margin:0 auto 6px;font-size:96px;color:var(--ac)}
.petly-state-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.petly-state-actions a,.petly-state-actions button{font:inherit;text-decoration:none;border:1px solid var(--bd);border-radius:12px;padding:10px 18px;background:var(--ol);color:var(--on);cursor:pointer}.petly-state-actions a+ a{background:var(--bg2);color:var(--br)}
.petly-state-loading .petly-state-art{animation:petlyStateFloat 1.8s ease-in-out infinite}.petly-state-loading[data-failed] .petly-state-art{animation:none}@keyframes petlyStateFloat{50%{transform:translateY(-7px)}}@media(prefers-reduced-motion:reduce){.petly-state-art{animation:none!important}}
body.petly-system-document{margin:0;min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:var(--bg)!important;background-image:none!important}body.petly-system-document .petly-state-screen{min-height:0}

body.petly-system-document{font-family:Vazirmatn,system-ui,sans-serif} [data-petly-ssr]+.petly-state-screen{display:none}
/* Petly brand mark: one file, tinted with the current text colour in every theme. */
.petly-logo{display:inline-block;flex:none;width:.905em;height:1em;vertical-align:middle;background-color:currentColor;-webkit-mask:url(/assets/petly-logo.svg) center/contain no-repeat;mask:url(/assets/petly-logo.svg) center/contain no-repeat;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.petly-state-art.petly-logo{display:block}
@media(forced-colors:active){.petly-logo{forced-color-adjust:none;background-color:CanvasText}}

/* V80 catalog bot panel */
.petly-admin-grid.ps-stats{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.petly-admin-grid.ps-stats .box{padding:12px;min-width:0}
.tag[data-sync-state]{background:#8a6100;color:#fff!important}
.tag[data-sync-state="running"]{background:#1f7a45}
.tag[data-sync-state="offline"],.tag[data-sync-state="unauthorized"]{background:#a33a3a}
.tag[data-sync-state="disabled"]{background:#5f6670}
