/* Shared primitives for the directory, seller tools, public pages and sign-in. */
:root {
 --z-brand:#4134a4; --z-brand-dark:#30267c; --z-brand-pale:#eeecfb; --z-lime:#e6f398;
 --z-ink:#272539; --z-muted:#585569; --z-line:#dedce5; --z-paper:#faf9fc;
 --z-error:#992b3c; --z-error-bg:#fff0f1; --z-success:#246344; --z-success-bg:#eaf6ed;
 --z-r-control:10px; --z-r-panel:16px; --z-control:44px; --z-gap:16px;
 --z-control-ink:var(--z-brand); --z-mist:var(--z-brand-pale);
}
.venture-verdast, body[data-app="verdast"], body[data-venture="verdast"], .nav-row[data-nav="verdast"] {
 --tile-bg:#bfc9f6; --tile-ink:#25274e; --tile-mark:#344795; --z-control-ink:#344795; --z-mist:#eef1ff; --art-at:43% 54%;
}
.venture-cashier, body[data-app="cashier"], body[data-venture="cashier"], .nav-row[data-nav="cashier"] {
 --tile-bg:#f8d87a; --tile-ink:#403019; --tile-mark:#785318; --z-control-ink:#785318; --z-mist:#fff5d5; --art-at:42% 54%;
}
.venture-storefront, body[data-app="storefront"], body[data-venture="storefront"], .nav-row[data-nav="storefront"] {
 --tile-bg:#d8b3ef; --tile-ink:#3c2356; --tile-mark:#70388d; --z-control-ink:#70388d; --z-mist:#f7ecfc; --art-at:50% 46%;
}
.venture-content, body[data-app="content"], body[data-venture="content"], .nav-row[data-nav="content"] {
 --tile-bg:#fcc7d9; --tile-ink:#56273a; --tile-mark:#993653; --z-control-ink:#993653; --z-mist:#fff0f4; --art-at:45% 48%;
}
.venture-supply, body[data-app="supply"], body[data-venture="supply"], .nav-row[data-nav="supply"] {
 --tile-bg:#f0b48b; --tile-ink:#4c301d; --tile-mark:#954e1a; --z-control-ink:#954e1a; --z-mist:#fff0e5; --art-at:51% 50%;
}
.venture-account, body[data-app="account"], body[data-venture="account"], .nav-row[data-nav="account"] {
 --tile-bg:#b9dcf8; --tile-ink:#213c56; --tile-mark:#215b82; --z-control-ink:#215b82; --z-mist:#ecf6ff; --art-at:47% 53%;
}
.venture-marketing, body[data-app="marketing"], body[data-venture="marketing"], .nav-row[data-nav="marketing"] {
 --tile-bg:#f39b9f; --tile-ink:#481a25; --tile-mark:#972d41; --z-control-ink:#972d41; --z-mist:#fff0f0; --art-at:48% 49%;
}
.venture-people, body[data-app="people"], body[data-venture="people"], .nav-row[data-nav="people"] {
 --tile-bg:#834477; --tile-ink:#ffffff; --tile-mark:#72265c; --z-control-ink:#72265c; --z-mist:#fbebf7; --art-at:48% 56%;
}
.venture-academy, body[data-app="academy"], body[data-venture="academy"], .nav-row[data-nav="academy"] {
 --tile-bg:#9aaec2; --tile-ink:#233349; --tile-mark:#354b64; --z-control-ink:#354b64; --z-mist:#eef2f7; --art-at:51% 52%;
}
body.workday[data-app],body.directory,body.identity { background:var(--z-paper); color:var(--z-ink); --ink:var(--z-ink); --muted:var(--z-muted); --line:var(--z-line); }
body.workday[data-app] { --theme:var(--z-control-ink); --wash:var(--z-mist); }
body.workday .account-trigger, body.directory .account-trigger,.identity-panel .btn,.account-dialog .primary,.sign-in-controls .primary {background:var(--z-brand);border-color:var(--z-brand);color:white;}
body.workday .account-trigger:hover,body.directory .account-trigger:hover,.identity-panel .btn:hover {background:var(--z-brand-dark);}
body.workday .portal-nav [aria-current="page"]:not(.portal-brand), .reading-choices [aria-pressed=true],.workday #dock [aria-current] {background:var(--z-brand-pale);color:var(--z-brand-dark);}
.workday .ink-settings .type-icon,.directory .ink-settings .type-icon,.identity-panel #oidc-option,.identity-actions .text-button,.identity-brand {color:var(--z-brand);}
body.workday[data-app=home] main {width:min(92%,1160px);padding:22px 0 64px;}
body.workday[data-app=home] .topbar {padding-inline:max(4vw,calc((100vw - 1160px)/2));}
body.workday[data-app=home] .portal-landing {grid-template-columns:minmax(0,1.75fr) minmax(275px,1fr);grid-template-areas:"mast follow" "apps apps" "overview overview";gap:24px var(--z-gap);}
.portal-landing>.home-followup {grid-area:follow;align-self:stretch;min-width:0;}
.portal-hero,body.workday[data-app=today] .hero {
 background:#343098 var(--home-art) left center / auto 100% no-repeat;color:white;
 border:0;border-radius:var(--z-r-panel);min-height:178px;display:flex;align-items:center;
}
.portal-hero::before {
 inset:0;width:auto;background:linear-gradient(to left,#302988 10%,#302988f7 35%,#302988aa 54%,transparent 78%);border-radius:0;
}
.portal-hero-copy {position:relative;width:min(72%,38rem);padding:20px clamp(18px,3vw,36px);overflow-wrap:anywhere;}
.portal-hero-copy>span {color:#e6e2ff;font:500 .92rem/1.55 var(--fa-reading);}
.portal-hero h1,.workday[data-app=today] .hero h1 {color:white;font:660 clamp(1.8rem,3.2vw,3rem)/1.48 var(--fa-title);margin:.08em 0;}
.portal-hero .hero-store,.public-hero p {color:#f4f1fc;font-size:1rem;line-height:1.65;}
.portal-hero-actions {margin-top:11px;}
.portal-hero .portal-primary,.workday[data-app=today] .hero .primary {background:var(--z-lime);color:#302b44;border:1px solid transparent;}
.portal-hero .portal-quiet,.workday .hero .hero-secondary {background:#ffffff0d;color:white;border:1px solid #aaa8d4;}
.portal-hero .portal-quiet:hover {background:#ffffff24;}
.portal-hero-actions button {min-height:var(--z-control);border-radius:var(--z-r-control);}
.home-followup {display:flex;flex-flow:column;justify-content:center;background:white;padding:12px 20px;box-shadow:none;border:1px solid var(--z-line);}
.home-followup h2,.ventures-title h2 {font:650 1.4rem/1.6 var(--fa-title);color:var(--z-ink);margin:0;}
.home-followup button {min-height:56px;}
.home-followup strong {font:560 .98rem/1.6 var(--fa-reading);}
.home-followup small {font-size:.86rem;}
.ventures-title {align-items:center;min-height:48px;margin-bottom:10px;}
.venture-search,.directory .global-search {box-shadow:none;border:1px solid #aca8bd;background:white;}
.hub-tools {display:flex;flex-wrap:wrap;gap:6px;}
.venture-search {width:clamp(180px,22vw,270px);height:44px;}
.venture-search input {font-size:1rem;}
.search-clear {color:var(--z-brand);background:transparent;min-height:44px;}
.search-status:empty {display:none;}
.ventures .venture-grid,.family-grid.venture-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.venture-grid .venture-tile,.venture-grid>.venture-tile:nth-child(9):last-child {
 display:flex;flex-direction:column;justify-content:center;align-items:start;position:relative;isolation:isolate;
 min-height:125px;gap:0;padding:16px 22px;grid-column:auto;border:none;border-radius:var(--z-r-panel);
 background:var(--tile-bg);color:var(--tile-ink);box-shadow:none;
}
.venture-grid .venture-tile .v-art,.venture-grid>.venture-tile:nth-child(9):last-child .v-art {
 inset:0 auto 0 0;width:46%;height:100%;border-radius:0;background:var(--poster-art) var(--art-at,center) / cover no-repeat;
 mask-image:linear-gradient(to right,black 0%,black 65%,transparent 100%);
}
.venture-grid .venture-tile .tile-top {display:none;}
.venture-grid .venture-tile .tile-copy {position:relative;align-self:start;max-width:56%;display:grid;gap:3px;}
.venture-grid .venture-tile .tile-copy strong {font:665 clamp(1.45rem,2vw,1.85rem)/1.48 var(--fa-title);}
.venture-grid .venture-tile .tile-copy small {font:450 .98rem/1.65 var(--fa-reading);}
.venture-grid .venture-tile[aria-disabled=true] {opacity:1;border:1px dashed var(--tile-mark);}
body.workday #heading:has(.venture-mark) {min-height:105px;padding:14px 22px;background:var(--z-mist);color:var(--z-control-ink);border:0;border-inline-start:4px solid var(--z-control-ink);}
body.workday #heading:has(.venture-mark)::before {width:min(25%,165px);background:var(--poster-art) var(--art-at) / cover;mask-image:linear-gradient(to right,black 55%,transparent);}
body.workday #heading:has(.venture-mark) #title {font:650 clamp(1.6rem,2.6vw,2.12rem)/1.48 var(--fa-title);color:var(--z-ink);}
body.workday #heading:has(.venture-mark) #intro {font-size:1rem;color:var(--z-muted);}
body.workday #heading:has(.venture-mark) #mode {color:var(--z-control-ink);}
.workday .nav-row[aria-current] {background:var(--z-mist);color:var(--z-control-ink);}
.workday .nav-row .glyph {color:var(--z-control-ink);}
#dock .venture-mark {width:20px;height:20px;}
body.workday[data-app] #dock button {min-height:48px;}
body.workday #dock [aria-current] {box-shadow:inset 0 -3px var(--z-brand);}
body.workday .card {border-color:var(--z-line);border-radius:var(--z-r-panel);}
.workday .card h2,.workday .card h3 {font-weight:620;}
.workday .section-links {border-bottom:1px solid var(--z-line);padding-bottom:6px;margin-block-end:var(--z-gap);}
.workday .section-links button {min-height:var(--z-control);background:transparent;border:0;color:var(--z-control-ink);text-decoration:underline;text-underline-offset:5px;text-decoration-color:#c7c2d2;}
.workday :is(.primary,.secondary,.form button,.filters button,summary),.directory .btn {min-height:var(--z-control);}
.workday .form label {font-size:1rem;line-height:1.7;font-weight:510;}
.workday .form label:has(>input:not([type=checkbox],[type=radio])),.workday .form label:has(>textarea) {gap:5px;}
.workday button.primary {background:var(--z-control-ink);color:white;}
.workday .ticket .primary {background:#ffe099;color:#392915;}
.workday .ticket .muted {color:#f1ebfb;}
.workday .ticket,.workday .session {background:#29263f;}
.workday .session .muted,.workday .session p {color:#f0eafa;}
.workday .stats .metric strong {font-weight:610;}
.home-sidebar .trend-panel {min-height:0;}
.home-sidebar .trend-panel,.finance-trend {--plot-accent:#564aab;--plot-picked:#382a7a;--plot-column:#8581c7;}
.trend-panel .segmented button[aria-pressed=true] {color:var(--z-brand);}
.trend-panel .picked-day,.trend-panel .trend-caption>span,.trend-foot {font-size:.94rem;}
.trend-foot .week-total strong {white-space:normal;}
.trend-reading bdi,.receipt b,.ticket .total {unicode-bidi:isolate;}
.workday .ledger,.workday .trend-table,.workday .receipt .row b {font-variant-numeric:tabular-nums;}
.workday :is(.row,.entry,.receipt,.stat,.metric,.hero-copy) {min-width:0;overflow-wrap:anywhere;}
.workday [data-error=true]:not(:empty),.identity-panel #identity-status[data-error=true],.field-error {color:var(--z-error);background:var(--z-error-bg);}
.workday .field-error,.identity-panel #identity-status[data-error=true] {display:block;padding:.4rem .65rem;border-inline-start:3px solid var(--z-error);border-radius:4px;}
.workday :is(input,textarea,select)[aria-invalid=true],.identity-panel [aria-invalid=true] {outline:2px solid var(--z-error);}
.identity-panel,.identity-page {color:var(--z-ink);}
.identity-panel h1 {color:var(--z-ink);font-weight:650;}
.auth-step,.identity-brand {color:var(--z-brand);}
body.identity {background:var(--z-paper);}
.workday [tabindex="-1"],.workday .form input,.workday .form button {scroll-margin-block:75px 110px;}
body[data-venture] .release-brand-strip {--release-brand:var(--z-control-ink)!important;background:var(--z-mist);color:var(--z-control-ink);}
:where(.workday,.directory,.identity) :focus-visible {outline:3px solid var(--z-brand);outline-offset:3px;}
:where(.portal-hero,.ticket,.session) :focus-visible {outline-color:#f2f8a8;}
@media(min-width:900px) {
 .home-sidebar .home-trend {display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,2fr);gap:5px 22px;align-items:center;}
 .home-sidebar .trend-head {grid-column:1;grid-row:1;}
 .home-sidebar .trend-reading {grid-column:1;grid-row:2;}
 .home-sidebar .trend-graph {grid-column:2;grid-row:1/4;}
 .home-sidebar .trend-foot {grid-column:1;grid-row:3;gap:6px;flex-wrap:wrap;}
}
@media(max-width:900px) and (min-width:601px) {
 .ventures .venture-grid,.family-grid.venture-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px) {
 body.workday[data-app=home] main {width:100%;padding:12px 14px calc(80px + env(safe-area-inset-bottom));}
 body.workday[data-app=home] .portal-landing {grid-template-columns:minmax(0,1fr);grid-template-areas:"mast" "follow" "apps" "overview";gap:14px;}
 .portal-hero {min-height:145px;}
 .portal-hero-copy {width:71%;padding:16px;}
 .portal-hero h1 {font-size:1.8rem;}
 .portal-hero .hero-store {font-size:.95rem;}
 .home-followup {padding:9px 13px;}
 .home-followup h2 {font-size:1.04rem;}
 .home-followup button {min-height:44px;padding:3px 0;}
 .home-followup small,.home-followup strong {display:inline;font-size:.94rem;}
 .home-followup small {margin-inline-end:8px;}
 .home-followup .followup-mark {width:26px;height:26px;}
 .home-followup .followup-mark svg {width:16px;height:16px;}
 .workday .form,.workday .card {scroll-margin-bottom:100px;}
 .workday #dock {padding-bottom:env(safe-area-inset-bottom);}
 .workday:has(input:focus,textarea:focus,select:focus) #dock {display:none;}
 body.workday #heading:has(.venture-mark) #intro {font-size:.95rem;}
}
@media(max-width:600px) {
 .ventures .venture-grid,.family-grid.venture-grid {grid-template-columns:minmax(0,1fr);gap:8px;}
 .venture-grid .venture-tile,.venture-grid>.venture-tile:nth-child(9):last-child {min-height:82px;padding:10px 15px;}
 .venture-grid .venture-tile .v-art,.venture-grid>.venture-tile:nth-child(9):last-child .v-art {width:32%;background-size:auto 115%;background-position:var(--art-at);}
 .venture-grid .venture-tile .tile-copy {max-width:68%;gap:0;}
 .venture-grid .venture-tile .tile-copy strong {font-size:1.29rem;}
 .venture-grid .venture-tile .tile-copy small {font-size:.94rem;}
 .ventures-title {display:flex;flex-wrap:wrap;gap:4px 10px;margin-bottom:8px;}
 .hub-tools {flex:1 1 10rem;justify-content:end;}
 .venture-search {width:100%;max-width:230px;}
 .ventures-title h2 {font-size:1.18rem;}
}
@media(max-width:370px) {
 .portal-hero-copy {width:76%;padding:13px;}
 .portal-hero-actions button {font-size:.84rem;padding-inline:9px;}
 .home-followup button {text-align:start;}
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after {scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;}
 .venture-grid .venture-tile:hover:not([aria-disabled=true]) {transform:none;}
}
@media(forced-colors:active) {
 .venture-grid .venture-tile, .home-followup button, button[aria-current], [aria-pressed=true] {border:1px solid ButtonText;}
}
.venture-grid .venture-tile .tile-top {
 display:grid;position:absolute;inset:11px 16px auto auto;width:19px;height:19px;
 color:var(--tile-mark);background:transparent;opacity:1;
}
.venture-people .tile-top .venture-mark {color:white;}
.venture-grid .venture-tile .tile-top .venture-mark {width:16px;height:16px;}
.venture-grid .venture-tile .tile-copy {margin-block-start:13px;}
.venture-grid .venture-tile .v-art,.venture-grid>.venture-tile:nth-child(9):last-child .v-art {
 width:47%;background-size:auto 100%;background-position:left center;
 background-color:var(--tile-bg);
 mask-image:linear-gradient(to right,black 0%,black 69%,transparent 100%);
}
.venture-grid .venture-cashier .v-art,.venture-grid .venture-verdast .v-art {background-size:auto 95%;}
.venture-grid .venture-people .v-art {mask-image:linear-gradient(to right,#000 33%,#000d 68%,transparent 100%);}
.workday .surface-note,.workday .recommendation,.workday .yesterday {color:var(--z-control-ink);font-size:1rem;margin:.3rem 0 1rem;}
.workday .recommendation {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.5rem .8rem;background:var(--z-mist);border-radius:8px;}
.workday .origin-link {min-height:44px;color:var(--z-brand);background:transparent;text-decoration:underline;text-underline-offset:4px;}
.workday .checkout-jump {display:none;}
.workday .ticket .muted,.workday .session .muted {color:#eeeaf6;}
.workday .learning-route .primary {margin-top:12px;}
.workday .pill.warn,.workday .pill.good {font-weight:550;}
.workday .auth-step {font-size:.93rem;}
.workday .yesterday {display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;}
body.workday #desk[aria-busy=true]:empty::before {content:'در حال دریافت اطلاعات…';color:var(--z-muted);display:block;text-align:center;font-family:var(--fa-reading);}
@media(max-width:600px) {
 .portal-landing .portal-hero {min-height:138px;}
 .portal-landing .portal-hero-copy {width:80%;padding:12px 15px;}
 .portal-landing .portal-hero h1 {font-size:1.62rem;line-height:1.45;}
 .portal-landing .portal-hero-copy>span {font-size:.88rem;}
 .portal-landing .hero-store {font-size:.92rem;}
 .portal-landing .portal-hero-actions {margin-top:6px;gap:4px;}
 .portal-landing .portal-quiet {display:none;}
 .venture-grid .venture-tile .tile-top {inset:50% 11px auto auto;transform:translateY(-50%);width:18px;}
 .venture-grid .venture-tile .tile-copy {margin-block-start:0;margin-inline-start:23px;max-width:59%;}
 .venture-grid .venture-tile .v-art,.venture-grid>.venture-tile:nth-child(9):last-child .v-art {width:28%;background-position:left center;}
 .workday .checkout-jump {display:flex;justify-content:space-between;gap:7px;align-items:center;position:sticky;top:0;z-index:3;padding:8px 14px;margin:0 0 12px;width:100%;min-height:46px;border-radius:var(--z-r-control);background:#342e4a;color:white;}
 .workday:has(#cash input:focus) .checkout-jump {position:static;}
}
/* Fade the artwork itself, including the narrower square source at large widths. */
.venture-grid .venture-tile .v-art,.venture-grid>.venture-tile:nth-child(9):last-child .v-art {
 width:auto;height:100%;aspect-ratio:1 / 1;max-width:45%;
 background-size:100% 100%;background-position:center;
 mask-image:linear-gradient(to right,#000 45%,#000e 68%,transparent 100%);
}
.venture-grid .venture-people .v-art {mask-image:linear-gradient(to right,#000 42%,#000e 64%,transparent 100%);}
@media(max-width:600px) {
 .venture-grid .venture-tile .v-art,.venture-grid>.venture-tile:nth-child(9):last-child .v-art {max-width:29%;}
}
body.workday[data-app=people] .card.session,body.workday[data-app=cashier] .card.ticket {
 background:#29263f;color:#fff;border-color:#29263f;
}
body.workday :is(.session,.ticket) :is(h2,h3,p,.muted,label) {color:#f1eef8;}
body.workday :is(.session,.ticket) .secondary {background:white;color:#382f51;border-color:#ded8e9;}
.workday .ticket .primary,.workday .session .primary {background:#f3e1a7;color:#332c3f;}
.workday .trend-panel :is(.segmented button,.trend-caption>span,.trend-reading strong small,.picked-day,.week-total,.week-total strong,.daily-delta,.trend-scale span,.trend-axis em,.trend-axis b) {
 font-size:max(.875rem,14px);
}
.workday .trend-panel .trend-foot {row-gap:5px;flex-wrap:wrap;}
.workday .trend-panel .trend-reading {gap:8px;}
.dock-settings {margin-block:.5rem;}
.dock-settings summary {min-height:44px;cursor:pointer;padding-block:9px;}
.dock-settings label {display:grid;gap:3px;font-size:.94rem;}
.dock-settings select {min-height:42px;max-width:100%;font:inherit;}
body.workday .metric :is(span,small),body.workday .metric strong small {
 font-size:max(.875rem,14px);line-height:1.5;
}
body.workday .metric>div:first-child {gap:.35rem;}
@media(max-width:400px) {
 body.workday[data-app=today] .stats {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.workday[data-app=today] .stats>.metric:last-child:nth-child(odd) {grid-column:1/-1;}
}

/* Homepage only. Workspace headers, palettes and controls belong to their ventures. */
.portal-landing .home-followup .home-follow-row {gap:10px;padding-block:7px;}
.portal-landing .home-followup .followup-copy {flex:1;min-width:0;}
.portal-landing .home-followup .followup-line {display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;}
.portal-landing .home-followup .followup-line small {margin:0;color:var(--z-muted);}
.portal-landing .home-followup .urgent .followup-line small {color:#8a4622;}
.portal-landing .home-followup .urgent .followup-mark {background:#fbefde;}
.portal-landing .home-followup .followup-detail {display:block;font-size:.875rem;color:var(--z-muted);line-height:1.55;}
#home-apps-title {scroll-margin-top:80px;}
body.workday[data-app=home] .venture-grid .venture-people .v-art,
.directory .family-launch:has(.public-hero) .venture-people .v-art {
 background-color:#eedbea;background-blend-mode:multiply;
 mask-image:linear-gradient(to right,#000 42%,#000d 69%,transparent 100%);
}
@media(max-width:760px) {
 body.workday[data-app=home] .portal-nav [data-action=menu] {display:none;}
 .portal-landing .home-followup .home-follow-row {padding-block:5px;}
}
