/* Sun Colour illustrated bento: white matte surfaces, charcoal detail, selective red. */
.bento-ui{--art-shadow:0 9px 24px #26262608,0 2px 5px #26262604;background:#f8f8f8}
.context-art{object-fit:contain;pointer-events:none;user-select:none;flex-shrink:0}
.bento-ui .panel,.bento-ui .stat-card,.bento-ui .task-card,.bento-ui .manager-kpi,.bento-ui .lesson-card{border-color:#e3e3e3;border-radius:22px;background:linear-gradient(140deg,#fff,#fcfcfc);box-shadow:var(--art-shadow)}
.bento-ui .btn{border-radius:14px;min-height:42px;box-shadow:0 2px 4px #26262605;transition:box-shadow .18s,transform .18s,background .18s}
.bento-ui .btn:hover{box-shadow:0 5px 12px #26262612}.bento-ui .btn:active{transform:translateY(1px)}
.bento-ui .btn.primary{background:#f01421;border-color:#f01421;color:#fff;box-shadow:0 4px 10px #f014211a}
.bento-ui .page-heading.has-context-art{display:grid;grid-template-columns:minmax(0,1fr) auto 170px;gap:22px;align-items:center;min-height:155px;padding:17px 25px;background:linear-gradient(120deg,#fff,#f9f9f9);border:1px solid #e4e4e4;border-radius:24px;box-shadow:var(--art-shadow);margin-bottom:24px}
.page-art{width:170px;height:116px}.bento-ui .page-heading h1{font-size:28px;line-height:1.7}.bento-ui .page-heading .heading-actions{flex-wrap:wrap;max-width:320px;justify-content:flex-start}
.bento-ui .hero{min-height:300px;border:1px solid #dedede;border-radius:28px;background:radial-gradient(ellipse at 20% 100%,#f1f1f1,transparent 65%),linear-gradient(125deg,#fff,#fafafa);box-shadow:var(--art-shadow);overflow:hidden;gap:30px}
.bento-ui .hero-copy{position:relative;z-index:1;min-width:0}.bento-ui .hero h2{font-size:34px;line-height:1.8}.bento-ui .hero-art{width:44%;height:270px;min-width:230px;display:flex;align-items:center;justify-content:center;transform:none;background:none;border:0;box-shadow:none}.bento-ui .hero-art:before,.bento-ui .hero-art:after{display:none}.factory-art{width:100%;height:100%;filter:drop-shadow(0 8px 8px #26262608)}
.visual-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 25px;padding:12px;background:#fff;border:1px solid #e1e1e1;border-radius:22px;box-shadow:var(--art-shadow)}
.visual-shortcut{display:flex;align-items:center;justify-content:center;gap:9px;padding:4px 10px;font-size:12px}.shortcut-art{width:66px;height:48px}
.bento-ui .stat-card,.bento-ui .manager-kpi{position:relative;overflow:hidden;min-height:148px;padding-left:95px}.metric-art{position:absolute;left:8px;bottom:17px;width:86px;height:79px}.bento-ui .stat-symbol{background:#f6f6f6;color:#555}.bento-ui .stat-value{font-size:35px}.bento-ui .manager-kpi{padding-left:67px;min-height:165px}.manager-kpi .metric-art{width:66px;height:65px;left:2px;bottom:24px}
.bento-ui .manager-kpi.urgent{background:linear-gradient(130deg,#fff,#fff3f4);border-color:#f0b9be}
.bento-ui .task-card{position:relative;padding-left:88px;min-height:104px}.task-art{position:absolute;left:9px;bottom:14px;width:69px;height:65px}.bento-ui .task-card>.icon{display:none}.bento-ui .task-count{color:#bd0d19;background:#fff1f2}
.bento-ui .manager-hero{color:#262626;background:radial-gradient(ellipse at 20% 100%,#eeeeee,transparent 65%),linear-gradient(135deg,#fff,#fbfbfb);border-color:#dfdfdf;box-shadow:var(--art-shadow);border-radius:28px}.bento-ui .manager-hero .eyebrow{color:#777}.bento-ui .manager-hero p,.bento-ui .manager-live{color:#686868}.bento-ui .manager-hero h1{font-size:34px}.bento-ui .manager-illustration{width:clamp(270px,32vw,430px);height:auto;aspect-ratio:3/2;filter:drop-shadow(0 8px 8px #26262607)}
.bento-ui .count-hero{border-radius:26px;box-shadow:var(--art-shadow);background:linear-gradient(135deg,#fff,#fafafa)}.bento-ui .count-hero img{width:310px}.bento-ui .learning-hero{border:1px solid #e0e0e0;box-shadow:var(--art-shadow);border-radius:26px}.bento-ui .learning-art{width:290px}.bento-ui .lesson-card{position:relative;padding-left:95px;min-height:175px}.lesson-art{width:85px;height:80px;position:absolute;left:9px;bottom:18px}
.empty.has-context-art,.manager-empty.has-context-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}.empty-art{order:-1;width:145px;height:105px}.empty.has-context-art .empty-symbol{display:none}.manager-empty .empty-art{width:100px;height:75px}
.nav-dropdown .top-nav-item.has-context-art{display:flex;gap:9px}.nav-art{order:-1;width:38px;height:31px}.nav-dropdown .top-nav-item.has-context-art>svg{display:none}
.dialog-head.has-context-art{position:relative;padding-left:112px}.dialog-art{position:absolute;left:48px;top:15px;width:65px;height:48px}.button-art{order:-1;width:38px;height:30px}.heading-actions .has-context-art>svg{display:none}
.bento-ui .setup-guide{border-radius:19px;background:#fff7f7;border-color:#f2d4d6}.bento-ui input:focus,.bento-ui select:focus,.bento-ui textarea:focus{border-color:#f01421;box-shadow:0 0 0 3px #f0142110}.bento-ui :focus-visible{outline:2px solid #c9121e;outline-offset:3px}
@media(min-width:1400px){.bento-ui .stat-card{padding-left:120px}.stat-card .metric-art{width:110px;height:98px}}
@media(max-width:1100px){.bento-ui .page-heading.has-context-art{grid-template-columns:minmax(0,1fr) 125px;gap:12px}.page-art{grid-column:2;grid-row:1/3;width:125px;height:100px}.bento-ui .page-heading .heading-actions{grid-column:1;max-width:none}.bento-ui .hero-art{width:42%;height:240px}.bento-ui .manager-illustration{width:260px}.bento-ui .manager-kpi{padding-left:66px}.visual-shortcut{font-size:11px;gap:4px}.shortcut-art{width:45px;height:38px}}
@media(max-width:650px){.bento-ui .page-heading.has-context-art{padding:17px;grid-template-columns:minmax(0,1fr) 85px;min-height:135px}.page-art{width:85px;height:80px;grid-row:1}.bento-ui .page-heading .heading-actions{grid-column:1/-1;grid-row:2;gap:8px}.bento-ui .page-heading h1{font-size:23px}.bento-ui .page-heading p{font-size:11px}.bento-ui .hero{display:flex;flex-direction:column;align-items:stretch;padding:23px;gap:5px}.bento-ui .hero h2{font-size:27px}.bento-ui .hero-art{width:100%;min-width:0;height:190px;margin:0}.visual-shortcuts{grid-template-columns:1fr 1fr;padding:9px;gap:8px}.visual-shortcut{font-size:11px;min-width:0;padding:5px}.shortcut-art{width:46px;height:39px}.bento-ui .stat-card{padding-left:66px;min-height:139px}.stat-card .metric-art{width:61px;height:68px;left:2px;bottom:15px}.bento-ui .stat-value{font-size:28px}.bento-ui .manager-kpi{padding-left:68px;min-height:150px}.bento-ui .manager-hero{padding:24px;display:flex;flex-direction:column;align-items:stretch;gap:4px}.bento-ui .manager-hero h1{font-size:29px}.bento-ui .manager-illustration{width:250px;max-width:100%;height:180px;margin:4px auto 0}.bento-ui .count-hero img{width:220px;height:auto;position:static;opacity:1;margin:5px auto}.bento-ui .lesson-card{padding-left:84px}.lesson-art{width:75px;height:70px}.bento-ui .learning-art{width:220px;height:145px}.bento-ui .task-card{padding-left:74px}.task-art{width:59px;height:59px;left:7px}.button-art{width:32px;height:25px}.dialog-art{width:55px;height:43px}.dialog-head.has-context-art{padding-left:102px}}
@media(prefers-reduced-motion:reduce){.bento-ui .btn{transition:none}.context-art{animation:none!important;transform:none!important}.bento-ui .btn:active{transform:none}}
@media print{.page-art,.dialog-art,.nav-art,.metric-art,.task-art,.lesson-art,.visual-shortcuts{display:none!important}.bento-ui .manager-kpi,.bento-ui .stat-card,.bento-ui .task-card{padding-left:12px;box-shadow:none}}

.context-art[hidden]{display:none!important}

.bento-ui .hero{display:flex;align-items:center;justify-content:space-between}.bento-ui .hero-art{position:relative;left:auto;top:auto;opacity:1}.bento-ui .hero-art img.factory-art{width:100%;height:100%;max-width:none;transform:none;filter:drop-shadow(0 8px 8px #26262608);animation:bento-reveal .6s ease-out both}.bento-ui .hero-copy{flex:1}
html[data-visual-page=dashboard] .page-heading.has-context-art{display:flex;justify-content:space-between;min-height:0;padding:0;border:0;background:none;box-shadow:none;margin-bottom:20px}html[data-visual-page=dashboard] .page-heading .page-art{display:none}
@keyframes bento-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.bento-ui .hero{flex-direction:column;align-items:stretch}.bento-ui .hero-art{height:200px;width:100%}html[data-visual-page=dashboard] .page-heading.has-context-art{display:block}html[data-visual-page=dashboard] .heading-actions{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.bento-ui .hero-art img.factory-art{animation:none!important}}

.section-art{width:49px;height:37px;display:inline-block;vertical-align:middle;margin-right:9px}.bento-ui .panel-header h2{line-height:1.8}

.illustrated-auth .auth-story{background:radial-gradient(ellipse at 20% 70%,#eee,transparent 70%),linear-gradient(140deg,#fff,#fafafa)}.illustrated-auth .auth-art.has-context-art{width:100%;height:310px;position:relative;left:auto;top:auto;transform:none;display:flex;align-items:center;justify-content:center}.illustrated-auth .auth-art:before,.illustrated-auth .auth-art:after{display:none}.illustrated-auth .auth-art img.auth-factory{width:100%;height:100%;max-width:480px;object-fit:contain;transform:none;animation:none;filter:none}.auth-box h1.has-context-art{display:flex;align-items:center;gap:10px}.auth-security{order:-1;width:54px;height:42px}@media(max-width:650px){.auth-security{width:45px;height:37px}.auth-box h1.has-context-art{font-size:24px}}
.illustrated-auth .btn.primary{background:#f01421;border-color:#f01421;color:#fff}.illustrated-auth input:focus{border-color:#f01421;box-shadow:0 0 0 3px #f0142110}
/* Larger illustrative surfaces; tiny controls retain minimal line icons. */
.bento-ui .page-heading.has-context-art{grid-template-columns:minmax(0,1fr) clamp(285px,32vw,420px);min-height:275px;padding:24px 32px;gap:12px 32px;position:relative}
.bento-ui .page-heading>div:first-child{grid-column:1;grid-row:1;align-self:end}.bento-ui .page-heading .heading-actions{grid-column:1;grid-row:2;max-width:none;align-self:start}.page-art{grid-column:2;grid-row:1/3;width:100%;height:240px;align-self:center;animation:scene-float 6s ease-in-out infinite}
.header-motion{grid-column:2;grid-row:1/3;width:100%;height:240px;align-self:center;pointer-events:none;z-index:2;overflow:visible}.motion-track{fill:none;stroke:#f01421;stroke-width:1;opacity:.12}.motion-travel{fill:none;stroke:#f01421;stroke-width:2;stroke-linecap:round;stroke-dasharray:18 390;animation:scene-flow 5s linear infinite}.motion-pulse{fill:#f01421;animation:scene-pulse 2.8s ease-in-out infinite}
@keyframes scene-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes scene-flow{to{stroke-dashoffset:-408}}@keyframes scene-pulse{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:.8;transform:translateY(-2px)}}
.bento-ui .hero-art img.factory-art{animation:scene-float 6s ease-in-out infinite}.bento-ui .manager-illustration,.bento-ui .count-hero>img,.bento-ui .learning-art{animation:scene-float 6s ease-in-out infinite}
.art-motion-paused .context-art,.art-motion-paused .header-motion *{animation-play-state:paused!important}.art-pause-toggle{font-size:10px;color:#737373;min-height:34px!important;box-shadow:none!important}
.bento-ui .stat-card{padding:20px 22px;min-height:220px}.bento-ui .stat-top{position:relative;z-index:1;display:block;line-height:1.8}.bento-ui .stat-symbol{display:none}.stat-card .metric-art{width:155px;height:145px;left:9px;bottom:9px}.bento-ui .stat-card .stat-value{position:absolute;right:22px;bottom:38px;font-size:46px;line-height:1.2}.bento-ui .stat-card .stat-caption{position:absolute;right:22px;bottom:16px;font-size:10px}
.bento-ui .manager-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.bento-ui .manager-kpi{padding:20px;min-height:220px}.manager-kpi .metric-art{width:145px;height:135px;left:6px;bottom:20px}.bento-ui .manager-kpi>strong{position:absolute;right:20px;bottom:55px;font-size:42px}.bento-ui .manager-kpi>small{position:relative;z-index:1}
.visual-shortcut{flex-direction:column;padding:12px;gap:5px;min-height:145px;font-size:13px}.shortcut-art{width:145px;height:100px}.bento-ui .task-card{min-height:150px;padding-left:135px}.task-art{width:118px;height:105px}.lesson-art{width:110px;height:95px}.bento-ui .lesson-card{padding-left:130px}
.bento-ui .manager-illustration{width:clamp(330px,38vw,500px)}.bento-ui .count-hero img{width:380px}.bento-ui .learning-hero{padding-left:390px;min-height:270px}.bento-ui .learning-art{width:350px;height:235px;left:20px;bottom:15px}
html[data-visual-page=dashboard] .page-heading .header-motion{display:none}html[data-visual-page=dashboard] .page-heading>div{grid-column:auto;grid-row:auto;align-self:auto}.hero-art .header-motion{position:absolute;inset:0;width:100%;height:100%}
@media(max-width:1100px){.bento-ui .page-heading.has-context-art{grid-template-columns:minmax(0,1fr) 265px;padding:22px;gap:12px 20px}.page-art,.header-motion{height:205px}.bento-ui .manager-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.bento-ui .stat-card{min-height:205px;padding:17px}.stat-card .metric-art{width:125px;height:120px}.bento-ui .stat-card .stat-value{right:17px;font-size:38px}.bento-ui .stat-card .stat-caption{right:17px}.shortcut-art{width:120px;height:85px}.bento-ui .learning-hero{padding-left:310px}.bento-ui .learning-art{width:275px;height:210px}}
@media(max-width:650px){.bento-ui .page-heading.has-context-art{grid-template-columns:1fr;padding:21px;gap:8px}.bento-ui .page-heading>div:first-child{grid-column:1;grid-row:1;align-self:auto}.page-art,.header-motion{grid-column:1;grid-row:2;width:min(100%,330px);height:210px;justify-self:center}.bento-ui .page-heading .heading-actions{grid-column:1;grid-row:3;align-self:auto}.bento-ui .stat-card{min-height:215px;padding:15px}.stat-card .metric-art{width:115px;height:112px;left:1px;bottom:4px}.bento-ui .stat-card .stat-value{font-size:32px;right:16px;bottom:99px}.bento-ui .stat-card .stat-caption{right:15px;bottom:82px;font-size:9px}.bento-ui .manager-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.bento-ui .manager-kpi{padding:15px;min-height:225px}.manager-kpi .metric-art{width:115px;height:112px;left:1px;bottom:15px}.bento-ui .manager-kpi>strong{font-size:32px;right:15px;bottom:115px}.shortcut-art{width:125px;height:90px}.visual-shortcut{min-height:130px;font-size:12px}.bento-ui .task-card{padding-left:112px;min-height:145px}.task-art{width:100px;height:95px}.bento-ui .manager-illustration{width:100%;max-width:330px;height:220px}.bento-ui .count-hero img{width:min(100%,330px);height:220px}.bento-ui .learning-hero{padding-left:24px;padding-bottom:240px}.bento-ui .learning-art{width:300px;max-width:90%;height:215px;bottom:10px;left:50%;margin-left:-150px;transform:none}.bento-ui .lesson-card{padding-left:105px}.lesson-art{width:90px;height:85px}html[data-visual-page=dashboard] .page-heading .heading-actions{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.context-art,.header-motion *,.bento-ui .hero-art img.factory-art{animation:none!important;transform:none!important}.header-motion{display:none}}
@media print{.header-motion,.art-pause-toggle{display:none!important}.context-art{animation:none!important}}
.bento-ui .manager-kpi{min-height:235px}.bento-ui .manager-kpi>small{position:absolute;right:20px;left:20px;bottom:10px;z-index:2}.manager-kpi .metric-art{bottom:28px}@media(max-width:650px){.bento-ui .manager-kpi{min-height:240px}.bento-ui .manager-kpi>strong{top:66px;bottom:auto}.bento-ui .manager-kpi>small{right:15px;left:15px;bottom:8px}.manager-kpi .metric-art{bottom:28px}}
/* Scene motion: bitmap stays completely still; small details animate in place. */
.bento-ui .context-art,.bento-ui .hero-art img.factory-art,.illustrated-auth .auth-factory{animation:none!important;transform:none!important}.header-motion{display:none!important}
.scene-host{position:relative}.scene-overlay{position:absolute;pointer-events:none;overflow:visible;z-index:3;contain:layout style;}
.scene-smoke{opacity:0;animation:scene-smoke-rise 4.6s linear infinite;transform-origin:0 0;filter:drop-shadow(0 1px 1px #93959820)}
@keyframes scene-smoke-rise{0%{opacity:0;transform:translate(0,0) scale(.2)}12%{opacity:.85}55%{opacity:.62;transform:translate(6px,-24px) scale(1.05)}100%{opacity:0;transform:translate(13px,-49px) scale(1.55)}}
.scene-bubble{fill:#fff;opacity:0;animation:scene-bubble-rise 4.2s ease-in infinite}@keyframes scene-bubble-rise{0%,15%{opacity:0;transform:translateY(0) scale(.7)}30%{opacity:.4}85%{opacity:.28}100%{opacity:0;transform:translateY(-58px) scale(1.2)}}
.scene-glint{fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;opacity:0;animation:scene-glint 5.6s ease-in-out infinite}@keyframes scene-glint{0%,64%,100%{opacity:0;transform:scale(.4)}75%{opacity:.75;transform:scale(1)}87%{opacity:0;transform:scale(.7)}}
.scene-stir{fill:none;stroke:#fff;stroke-width:1;opacity:.32;stroke-dasharray:12 30;animation:scene-stir 4s linear infinite}.scene-stir.second{animation-delay:-1.7s}@keyframes scene-stir{to{stroke-dashoffset:-84}}
.scene-headlight{fill:#fff;opacity:.15;filter:drop-shadow(0 0 2px #fff);animation:scene-headlight 5s ease-in-out infinite}.scene-headlight.second{animation-delay:-.2s}@keyframes scene-headlight{0%,50%,100%{opacity:.15}65%,78%{opacity:.8}}
.scene-chart-shine{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-dasharray:7 190;opacity:.65;animation:scene-chart-glint 5s linear infinite}@keyframes scene-chart-glint{to{stroke-dashoffset:-197}}
.art-motion-paused .scene-overlay *,.scene-suspended .scene-overlay *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.scene-overlay{display:none!important}.scene-overlay *{animation:none!important}}
@media print{.scene-overlay{display:none!important}}
/* Intentional hover feedback for operation shortcuts and action buttons. */
.bento-ui .visual-shortcut{position:relative;isolation:isolate;overflow:hidden;border-color:transparent;transition:transform .24s ease,background .24s ease,border-color .24s ease,box-shadow .24s ease,color .24s ease}
.bento-ui .visual-shortcut::after{content:"";position:absolute;inset:auto 30% 0;height:3px;border-radius:3px 3px 0 0;background:#f01421;transform:scaleX(0);transition:transform .24s ease;pointer-events:none}
.bento-ui .visual-shortcut .shortcut-art{transition:transform .32s cubic-bezier(.2,.8,.3,1.2),filter .24s ease;transform-origin:50% 80%}
.bento-ui .visual-shortcut:focus-visible{background:#fff3f4;border-color:#f4bfc3;color:#b60e19;box-shadow:0 7px 18px #cf172312}
.bento-ui .visual-shortcut:focus-visible::after{transform:scaleX(1)}
@media(hover:hover) and (pointer:fine){
 .bento-ui .visual-shortcut:hover{background:#fff5f5;border-color:#f3c5c8;color:#b60e19;transform:translateY(-4px);box-shadow:0 9px 22px #cf172314}
 .bento-ui .visual-shortcut:hover::after{transform:scaleX(1)}
 .bento-ui .visual-shortcut:hover .shortcut-art{transform:translateY(-4px) scale(1.06);filter:drop-shadow(0 6px 4px #a20f1914)}
 .bento-ui .heading-actions .btn:not(:disabled):hover,.bento-ui .count-hero .btn:not(:disabled):hover{box-shadow:0 5px 14px #c810201a;border-color:#e9a7ad}
 .bento-ui .heading-actions .btn:not(:disabled):hover>.icon,.bento-ui .count-hero .btn:not(:disabled):hover>.icon{animation:action-icon-pop .42s ease-out both}
}
@keyframes action-icon-pop{0%,100%{transform:scale(1)}45%{transform:scale(1.22)}70%{transform:scale(.95)}}
.bento-ui .visual-shortcut:active{transform:scale(.97);background:#ffe9eb;border-color:#efabb1;box-shadow:inset 0 2px 6px #b90c1910}
.bento-ui .visual-shortcut:active::after{transform:scaleX(1)}
.art-motion-paused .visual-shortcut .shortcut-art{transform:none!important}.art-motion-paused .heading-actions .btn>.icon,.art-motion-paused .count-hero .btn>.icon{animation:none!important}
@media(prefers-reduced-motion:reduce){.bento-ui .visual-shortcut,.bento-ui .visual-shortcut::after,.bento-ui .visual-shortcut .shortcut-art{transition:none!important;animation:none!important}.bento-ui .visual-shortcut:hover,.bento-ui .visual-shortcut:active,.bento-ui .visual-shortcut:hover .shortcut-art{transform:none!important}.bento-ui .heading-actions .btn>.icon,.bento-ui .count-hero .btn>.icon{animation:none!important}}

/* Task artwork: hands and checkmarks move inside the still scene. */
.scene-clock-hand{animation:task-clock-tick 60s steps(60,end) infinite;transform-origin:0 0}
@keyframes task-clock-tick{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.scene-task-tick{opacity:0;animation:task-check-soft 6s ease-in-out infinite}.scene-task-tick.second{animation-delay:-3s}
@keyframes task-check-soft{0%,5%,48%,100%{opacity:0}14%,37%{opacity:1}}
@media(prefers-reduced-motion:reduce){.scene-clock-hand,.scene-task-tick{animation:none!important}}

/* Purchase clipboard: empty -> fill top to bottom -> clear top to bottom. */
.scene-purchase-tick{opacity:0;stroke-dasharray:1;stroke-dashoffset:1;animation:purchase-check-first 10s ease-in-out infinite}
.scene-purchase-tick.second{animation-name:purchase-check-second}.scene-purchase-tick.third{animation-name:purchase-check-third}
@keyframes purchase-check-first{0%,8%,100%{opacity:0;stroke-dashoffset:1}10%{opacity:1;stroke-dashoffset:1}16%,55%{opacity:1;stroke-dashoffset:0}59%,99%{opacity:0;stroke-dashoffset:0}}
@keyframes purchase-check-second{0%,22%,100%{opacity:0;stroke-dashoffset:1}24%{opacity:1;stroke-dashoffset:1}30%,68%{opacity:1;stroke-dashoffset:0}72%,99%{opacity:0;stroke-dashoffset:0}}
@keyframes purchase-check-third{0%,36%,100%{opacity:0;stroke-dashoffset:1}38%{opacity:1;stroke-dashoffset:1}44%,81%{opacity:1;stroke-dashoffset:0}85%,99%{opacity:0;stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.scene-purchase-tick{animation:none!important}}

/* Drop impact: concentric ripples expand across the paint's perspective plane. */
.scene-paint-ring{opacity:0;transform-origin:0 0;animation:paint-drop-ring 4s cubic-bezier(.2,.55,.35,1) infinite}
@keyframes paint-drop-ring{0%{opacity:0;transform:scale(.04)}7%{opacity:.78}48%{opacity:.58}78%{opacity:0;transform:scale(1.08)}100%{opacity:0;transform:scale(1.08)}}
.scene-paint-impact{opacity:0;animation:paint-drop-impact 4s ease-out infinite}
@keyframes paint-drop-impact{0%{opacity:0;transform:scale(.4)}5%{opacity:.85;transform:scale(1)}20%,100%{opacity:0;transform:scale(1.7)}}
@media(prefers-reduced-motion:reduce){.scene-paint-ring,.scene-paint-impact{animation:none!important}}
/* Secondary cards use quiet colour feedback; primary shortcuts keep their lift. */
.bento-ui .task-card,.bento-ui .lesson-card{position:relative;isolation:isolate;border:1px solid #e3e3e3;translate:none;transition:transform .24s ease,background .24s ease,border-color .24s ease,box-shadow .24s ease}
.bento-ui .task-card .task-art,.bento-ui .lesson-card .lesson-art{transition:transform .3s cubic-bezier(.2,.8,.3,1.2),filter .24s ease;transform-origin:50% 80%}
.bento-ui .task-card .task-count{transition:background .24s ease,color .24s ease}
.bento-ui .task-card:focus-visible,.bento-ui .lesson-card:focus-visible{outline:2px solid #d81524;outline-offset:3px;border-color:#efb4ba;background:linear-gradient(140deg,#fff,#fff3f4);box-shadow:var(--art-shadow)}
.bento-ui .task-card:active,.bento-ui .lesson-card:active{transform:none;background:#fff1f2;border-color:#eac6ca;box-shadow:var(--art-shadow)}
.bento-ui .top-nav-item,.bento-ui .nav-group>summary{position:relative;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.bento-ui .top-nav-item::after,.bento-ui .nav-group>summary::after{content:"";position:absolute;inset:auto 13px 5px;height:2px;border-radius:3px;background:#ed1c2b;transform:scaleX(0);transform-origin:right;transition:transform .24s ease;pointer-events:none}
.bento-ui .top-nav-item:focus-visible,.bento-ui .nav-group>summary:focus-visible{background:#fff1f2;color:#b60e19;outline:2px solid #d81524;outline-offset:2px}
.bento-ui .top-nav-item:focus-visible::after,.bento-ui .top-nav-item.active::after,.bento-ui .nav-group[open]>summary::after,.bento-ui .nav-group>summary:focus-visible::after{transform:scaleX(1)}
.bento-ui .nav-group>summary>.icon{transition:transform .24s ease,color .2s ease}
.bento-ui .nav-group[open]>summary{background:#fff1f2;color:#b60e19}
.bento-ui .nav-group[open]>summary>.icon{transform:rotate(180deg);color:#d81524}
.bento-ui .nav-group[open]>.nav-dropdown{animation:nav-panel-arrive .2s ease-out both}
@keyframes nav-panel-arrive{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.bento-ui .top-nav-item:active,.bento-ui .nav-group>summary:active{background:#ffe4e7;color:#b60e19;box-shadow:inset 0 1px 4px #a90b1610}
@media(hover:hover) and (pointer:fine){
 .bento-ui .task-card:hover,.bento-ui .lesson-card:hover{translate:none;transform:none;border-color:#eed1d4;background:linear-gradient(140deg,#fff,#fff8f8);box-shadow:var(--art-shadow)}
 .bento-ui .task-card:hover .task-art,.bento-ui .lesson-card:hover .lesson-art{transform:none!important;filter:none}
 .bento-ui .task-card:hover .task-count{background:#fff0f1;color:#bd0d19}
 .bento-ui .task-card:active,.bento-ui .lesson-card:active{transform:none;background:#fff1f2}
 .bento-ui .top-nav-item:hover,.bento-ui .nav-group>summary:hover{background:#fff1f2;color:#b60e19}
 .bento-ui .top-nav-item:hover::after,.bento-ui .nav-group>summary:hover::after{transform:scaleX(1)}
}
@media(prefers-reduced-motion:reduce){
 .bento-ui .task-card,.bento-ui .lesson-card,.bento-ui .task-art,.bento-ui .lesson-art,.bento-ui .task-count,.bento-ui .top-nav-item,.bento-ui .top-nav-item::after,.bento-ui .nav-group>summary,.bento-ui .nav-group>summary::after,.bento-ui .nav-group>summary>.icon{transition:none!important}
 .bento-ui .task-card:hover,.bento-ui .lesson-card:hover,.bento-ui .task-card:active,.bento-ui .lesson-card:active,.bento-ui .task-card:hover .task-art,.bento-ui .lesson-card:hover .lesson-art{transform:none!important;translate:none!important}
 .bento-ui .nav-group[open]>.nav-dropdown{animation:none!important}
}

/* Submenu rows remain quieter than the top-level headings. */
.bento-ui .nav-dropdown .top-nav-item::after{display:none}
.bento-ui .nav-dropdown .top-nav-item:hover{background:#f6f3f3;color:#a52c34;box-shadow:none}
.bento-ui .nav-dropdown .top-nav-item.active{background:#fff0f1;color:#c51623}
.bento-ui .nav-dropdown .top-nav-item:active{background:#f9e9eb;box-shadow:none}
.bento-ui .nav-group[open]>.nav-dropdown{animation:nav-panel-soft .16s ease-out both}
@keyframes nav-panel-soft{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.bento-ui .nav-group[open]>.nav-dropdown{animation:none!important}}
/* Underlines belong only to headings in the hamburger navigation. */
@media(min-width:1001px){.bento-ui .app-navigation>.top-nav-item::after,.bento-ui .nav-group>summary::after{display:none}}

/* Final restrained primary feedback: no decorative underline on any device. */
.bento-ui .visual-shortcut::after,.bento-ui .app-navigation .top-nav-item::after,.bento-ui .nav-group>summary::after{display:none!important}
.bento-ui .visual-shortcut{transition:transform .3s cubic-bezier(.2,.7,.3,1),background .3s ease,border-color .3s ease,box-shadow .3s ease,color .3s ease}
@media(hover:hover) and (pointer:fine){
 .bento-ui .visual-shortcut:hover{transform:translateY(-2px);background:#fff9f9;border-color:#ecd5d7;box-shadow:0 5px 15px #2828280b;color:#a9252e}
 .bento-ui .visual-shortcut:hover .shortcut-art{transform:none;filter:none}
}
.bento-ui .visual-shortcut:active{transform:translateY(0);background:#fff1f2;border-color:#eac6ca;box-shadow:inset 0 1px 3px #28282808}
.bento-ui .visual-shortcut:focus-visible{background:#fff6f6;border-color:#e8bec2;box-shadow:0 4px 12px #28282809}
@media(prefers-reduced-motion:reduce){.bento-ui .visual-shortcut:hover,.bento-ui .visual-shortcut:active{transform:none!important}}
/* Typography, spacing and feedback polish: keep primary actions easy to find. */
.bento-ui{--ui-gap:24px;--ui-muted:#727272;--ui-border:#e6e6e6}
.bento-ui .page-heading h1{font-size:clamp(25px,2.2vw,33px);line-height:1.65;letter-spacing:-.35px;margin-bottom:8px}
.bento-ui .page-heading p,.bento-ui .panel-header p{color:var(--ui-muted);line-height:2.1;max-width:68ch}
.bento-ui .panel-header h2,.bento-ui .section-title h2{font-size:16px;line-height:1.9}
.bento-ui .panel+.panel,.bento-ui .panel+.small-note{margin-top:var(--ui-gap)}
.bento-ui .toolbar{gap:12px;flex-wrap:wrap;align-items:center}
.bento-ui .task-card small,.bento-ui .lesson-card p{color:#747474;line-height:2}
.bento-ui .task-cards{display:flex;flex-direction:column;gap:10px;padding-bottom:20px}
.bento-ui .help-grid{gap:18px}
.bento-ui .stat-value,.bento-ui td,.bento-ui .task-count{font-variant-numeric:tabular-nums}
/* Tables have a quiet reading rhythm; focused row actions identify their row. */
.bento-ui th{background:#f8f8f8;color:#666;font-weight:700;font-size:11px;line-height:1.9}
.bento-ui td{font-size:12px;line-height:1.9;vertical-align:middle}
@media(min-width:701px){.bento-ui tbody tr:nth-child(even){background:#fcfcfc}.bento-ui tbody tr:hover{background:#faf7f7}.bento-ui tbody tr:focus-within{background:#fff2f3}.bento-ui td[data-label="عملیات"]{white-space:nowrap}.bento-ui td>.btn,.bento-ui td>.icon-btn{margin-inline:3px}}
.bento-ui .chip{font-size:10px;line-height:1.8;min-height:25px;max-width:100%}
/* Forms: clear required markers, local validation and comfortably spaced groups. */
.bento-ui .form-grid{gap:20px 24px;align-items:start}
.bento-ui .field{position:relative;font-size:12px;line-height:1.9;color:#505050}
.bento-ui .field:has(.required-hint){padding-inline-end:0}
.required-hint{position:absolute;inset-inline-end:0;top:0;color:#8c8c8c;font-size:9px;font-weight:400;pointer-events:none}
.bento-ui .field:has(.required-hint)>input,.bento-ui .field:has(.required-hint)>select{margin-top:0}
.bento-ui .field input,.bento-ui .field select,.bento-ui .field textarea{background:#fcfcfc;transition:border-color .18s ease,box-shadow .18s ease;line-height:1.8}
.bento-ui .field input:focus,.bento-ui .field select:focus,.bento-ui .field textarea:focus{background:#fff;border-color:#e26069;box-shadow:0 0 0 3px #f014210b}
.bento-ui .field small{font-size:10px;line-height:1.9;color:#777}
.bento-ui .field .field-error{color:#b51422;margin-top:0}
.bento-ui [aria-invalid=true]{border-color:#ce2937!important;background:#fffafa!important}
.bento-ui .form-error.visible{border:1px solid #f0c5c9;background:#fff6f6;color:#a91220;border-radius:12px;padding:12px 15px;line-height:2}
.bento-ui .form-actions{gap:10px;padding-top:20px;margin-top:22px;border-top:1px solid #ededed;flex-wrap:wrap}
.bento-ui .dialog-body{padding:25px}
.bento-ui .dialog-head{padding:20px 25px;border-bottom:1px solid #ececec}
.bento-ui .dialog-body>p{color:#666;line-height:2.1}
.ops-dialog[open],#edit-dialog[open],.help-dialog[open]{animation:polish-dialog-in .2s cubic-bezier(.2,.7,.3,1)}
@keyframes polish-dialog-in{from{opacity:0;transform:translateY(6px) scale(.995)}to{opacity:1;transform:none}}
/* Save state preserves button width; confirmation stays short and legible. */
.btn.is-submitting{cursor:progress;opacity:.85;white-space:nowrap}
.toast:not(.error)::before{animation:confirmation-arrive .32s ease-out}
@keyframes confirmation-arrive{0%{transform:scale(.65);opacity:0}65%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}
/* Shaped placeholders keep the loading screen close to the incoming content. */
.polish-loading{min-height:500px;width:100%;padding:26px 0!important;justify-content:flex-start;text-align:right!important}
.skeleton-layout{width:100%;padding:26px;border:1px solid #e7e7e7;border-radius:24px;background:#fff}
.skeleton-title,.skeleton-description,.skeleton-cards>i,.skeleton-rows>i{display:block;border-radius:9px;background:linear-gradient(100deg,#f0f0f0 20%,#f8f8f8 45%,#f0f0f0 70%);background-size:220% 100%;animation:polish-shimmer 1.8s ease-in-out infinite}
.skeleton-title{height:25px;width:38%;margin-bottom:14px}.skeleton-description{height:12px;width:58%;margin-bottom:30px}
.skeleton-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:28px}.skeleton-cards>i{height:110px;border-radius:16px}
.skeleton-rows{display:grid;gap:14px}.skeleton-rows>i{height:17px}.skeleton-rows>i:last-child{width:72%}
@keyframes polish-shimmer{from{background-position:100% 0}to{background-position:-120% 0}}
.bento-ui .empty.has-context-art{padding:30px 22px;gap:12px;min-height:230px}
.bento-ui .empty h3{font-size:16px;line-height:1.9;margin:0}.bento-ui .empty p{font-size:12px;line-height:2;color:#747474;max-width:50ch;margin:0}
.bento-ui .empty .empty-action{margin-top:5px}
.font-retry{max-width:330px;text-align:center;padding:15px;font:13px/2 sans-serif;color:#444;position:relative;z-index:2}.font-retry .btn{font-family:sans-serif}
@media(max-width:650px){
 .bento-ui{--ui-gap:18px}.bento-ui .page-heading h1{font-size:25px}.bento-ui .page-heading p{font-size:12px}
 .bento-ui .panel-header h2{font-size:15px}.bento-ui .help-grid{gap:14px}.bento-ui .form-grid{gap:18px}
 .bento-ui .dialog-body{padding:19px}.bento-ui .dialog-head{padding:17px 19px}.bento-ui .form-actions{gap:9px;margin-top:18px;padding-top:17px}
 .bento-ui .field input,.bento-ui .field select,.bento-ui .field textarea{font-size:16px;min-height:47px}
 .bento-ui .task-cards{gap:10px;padding-inline:14px}.bento-ui .task-card small{font-size:10px}
 .skeleton-layout{padding:20px}.skeleton-title{width:65%}.skeleton-description{width:85%}.skeleton-cards{grid-template-columns:1fr 1fr;gap:10px}.skeleton-cards>i{height:85px}.skeleton-cards>i:last-child{display:none}
 .polish-loading{min-height:440px}.bento-ui .empty.has-context-art{padding:25px 18px}
}
@media(prefers-reduced-motion:reduce){.ops-dialog[open],#edit-dialog[open],.help-dialog[open],.toast::before,.skeleton-title,.skeleton-description,.skeleton-cards>i,.skeleton-rows>i{animation:none!important}.bento-ui .field input,.bento-ui .field select,.bento-ui .field textarea{transition:none}}
/* Login uses the same field feedback before the authenticated theme is applied. */
.field:has(>.required-hint){position:relative}
.field .field-error{color:#b51422;font-size:10px;line-height:1.9}
.field [aria-invalid=true]{border-color:#ce2937!important;background:#fffafa!important}
/* Consistent inset for native single-select chevrons, including RTL filters/forms. */
select:not([multiple]):not([size]),select:not([multiple])[size="1"]{
 -webkit-appearance:none!important;appearance:none!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236b6b6b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-size:16px 16px!important;background-position:left 14px center!important;padding-inline-end:42px!important;
}
select:not([multiple]):dir(ltr){background-position:right 14px center!important}
@media(forced-colors:active){select:not([multiple]):not([size]),select:not([multiple])[size="1"]{appearance:auto!important;background-image:none!important;padding-inline-end:13px!important}}
/* Manager metrics use real grid cells: labels, values and artwork never share a slot. */
.bento-ui .manager-kpi{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,45%);grid-template-rows:auto auto 1fr auto;gap:10px 8px;min-height:240px;padding:20px;align-items:start}
.bento-ui .manager-kpi>div{grid-column:1/-1;grid-row:1;min-width:0;line-height:1.8}
.bento-ui .manager-kpi>p{grid-column:1;grid-row:2;position:static;margin:0;font-size:12px;line-height:1.9;color:#686868;min-width:0;overflow-wrap:break-word}
.bento-ui .manager-kpi>strong{grid-column:1;grid-row:3;position:static;inset:auto;margin:0;min-width:0;max-width:100%;font-size:34px;line-height:1.3;align-self:start;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.bento-ui .manager-kpi>.metric-art{grid-column:2;grid-row:2/4;position:static;width:100%;height:auto;max-width:145px;aspect-ratio:3/2;margin:0;align-self:center;justify-self:center}
.bento-ui .manager-kpi>small{grid-column:1/-1;grid-row:4;position:static;inset:auto;min-width:0;margin:0;padding-top:10px;border-top:1px solid #ededed;font-size:10px;line-height:1.8;align-self:end}
@media(min-width:651px) and (max-width:850px){.bento-ui .manager-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .bento-ui .manager-kpi{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto 1fr auto;gap:8px;min-height:290px;padding:15px}
 .bento-ui .manager-kpi>div{grid-column:1;grid-row:1;font-size:8px}.bento-ui .manager-kpi>div>span{font-size:8px}
 .bento-ui .manager-kpi>p{grid-column:1;grid-row:2;font-size:12px}
 .bento-ui .manager-kpi>strong{grid-column:1;grid-row:3;font-size:32px}
 .bento-ui .manager-kpi>.metric-art{grid-column:1;grid-row:4;width:112px;max-width:100%;height:auto;align-self:center}
 .bento-ui .manager-kpi>small{grid-column:1;grid-row:5;font-size:9px;padding-top:9px}
}
/* Quiet monochrome empty states; the main header retains its coloured illustration. */
.empty-vector{display:block;order:-1;flex:none;width:88px;height:66px;color:#a6a6a6;opacity:.75;margin:0 auto 3px;pointer-events:none}
.manager-empty .empty-vector{width:76px;height:57px}
.bento-ui .empty.has-context-art{min-height:190px;padding:24px 20px;gap:10px}
.bento-ui .manager-empty.has-context-art{min-height:150px;padding:24px 18px;gap:10px}
/* One fine field border, rather than stacked red focus rings. */
input:focus-visible,textarea:focus-visible,select:focus-visible,.select-face:focus-visible{outline:none!important}
.field input:focus,.field textarea:focus,.field select:focus,.select-face:focus-visible{border-color:#c79da2!important;box-shadow:0 0 0 3px #24242406!important}
.field [aria-invalid=true],.field [aria-invalid=true]:focus,.select-face[aria-invalid=true],.select-face[aria-invalid=true]:focus-visible{border:1px solid #d28c95!important;background-color:#fffdfd!important;outline:none!important;box-shadow:none!important}
.field .field-error{display:flex;align-items:flex-start;gap:6px;color:#ad2330;font-size:11px;line-height:1.9;margin:0}
.field-error>svg{width:17px;height:17px;flex:none;margin-top:2px;fill:#fff4f5;stroke:#d63445;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
/* App-owned select menus: compact type, neutral hover and pale-red selection. */
.select-control{display:inline-grid;position:relative;vertical-align:middle;min-width:0;max-width:100%;isolation:isolate}
.field>.select-control{display:grid;width:100%}.toolbar>.select-control{flex:1 1 140px;min-width:0}
.select-control>select{opacity:0!important;pointer-events:none!important;margin:0!important;min-width:0;max-width:100%}
.select-face{position:absolute;inset:0;width:100%;height:100%;min-height:40px;border:1px solid #e3e3e3;border-radius:11px;background:#fcfcfc;color:#414141;text-align:right;padding:9px 13px 9px 42px;font:inherit;font-size:12px;line-height:1.8;display:flex;align-items:center;cursor:pointer;transition:border-color .18s ease,background .18s ease}
.select-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%}
.select-face>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:none;stroke:#6b6b6b;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.select-face[aria-expanded=true]{border-color:#d7b5b9;background:#fff}.select-face[aria-expanded=true]>svg{transform:translateY(-50%) rotate(180deg)}
.select-face:disabled{cursor:not-allowed;color:#999;background:#f5f5f5;opacity:.7}
.select-control:has(>select:dir(ltr)) .select-face{direction:ltr;text-align:left;padding-left:13px;padding-right:42px}.select-control:has(>select:dir(ltr)) .select-face>svg{left:auto;right:14px}
.select-control:has(>#purchase-focus){max-width:230px;margin:0 22px 18px}
.select-menu{position:fixed;inset:auto;margin:0;padding:6px;background:#fff;border:1px solid #e3e3e3;border-radius:13px;box-shadow:0 10px 30px #24242416;overflow:auto;overscroll-behavior:contain;z-index:1000;font:13px/1.8 Yekan,sans-serif;color:#414141;text-align:start;animation:select-menu-in .14s ease-out}
.select-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 11px;border-radius:8px;min-height:37px;cursor:pointer;overflow-wrap:anywhere}
.select-option.is-active{background:#f3f3f3}.select-option[aria-selected=true]{background:#fff0f2;color:#b92b3b}.select-option[aria-selected=true].is-active{background:#ffe9ed}
.select-option[aria-disabled=true]{color:#aaa;cursor:not-allowed;background:transparent}
.select-option>svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.select-group,.select-no-options{padding:8px 11px;color:#8b8b8b;font-size:11px}.select-group{font-weight:700}
@keyframes select-menu-in{from{opacity:0;translate:0 -2px}to{opacity:1;translate:none}}
/* Persian in-app discard confirmation. */
.discard-dialog{width:min(430px,calc(100vw - 32px));padding:28px;border:1px solid #e5e5e5;border-radius:24px;background:#fff;color:#303030;text-align:right;box-shadow:0 24px 80px #22222222;animation:polish-dialog-in .2s ease-out}
.discard-dialog::backdrop{background:#24242445;backdrop-filter:blur(4px)}
.discard-symbol{display:grid;place-items:center;width:56px;height:56px;border:1px solid #f1d8dc;border-radius:17px;background:#fff5f6;color:#c83b4d;margin-bottom:18px}
.discard-symbol svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.discard-dialog h2{font-size:19px;line-height:1.8;margin:0 0 10px}.discard-dialog p{font-size:12px;line-height:2.1;color:#757575;margin:0}
.discard-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.discard-actions>.btn{flex:1;font-size:12px;white-space:nowrap}.discard-actions>[data-discard-leave]{background:#fafafa;border-color:#e8e8e8;color:#686868}
@media(max-width:650px){.select-face{font-size:14px}.select-menu{font-size:13px}.select-option{padding:10px 11px;min-height:42px}.select-control:has(>#purchase-focus){max-width:calc(100% - 36px);margin-inline:18px}.discard-dialog{padding:23px}.discard-dialog h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.select-face,.select-face>svg{transition:none}.select-menu,.discard-dialog{animation:none!important}}
.form-error:focus{outline:none!important;box-shadow:none!important}

.app-release{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:8px 20px 22px;color:#929292;font-size:9px;line-height:1.8}.app-release .latin{font-size:10px;letter-spacing:.4px}

/* 0.14.1 — align related controls; keep every action reachable in short WebViews. */
.op-line{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) auto;align-items:start;gap:14px}
.op-line[data-line=purchase]{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto}
.op-line>.field,.form-grid>.field{min-width:0}
.op-line>.btn{align-self:start;margin-top:27px}
.stock-hint{overflow-wrap:anywhere}
.bento-ui dialog[open]{max-height:calc(var(--visible-height,100dvh) - 28px);overscroll-behavior:contain;scroll-padding-top:100px;scroll-padding-bottom:24px}
.bento-ui .dialog-head,.bento-ui .dialog-head.has-context-art{position:sticky;top:0;z-index:3;background:#fff;flex-shrink:0}
.bento-ui .dialog-head h2{min-width:0;overflow-wrap:anywhere}
.bento-ui .dialog-head>button{flex-shrink:0}
.route-back{white-space:nowrap;min-height:36px;gap:4px}
@media(max-width:1000px){
 .nav-open .app-navigation{max-height:var(--navigation-room,calc(var(--visible-height,100dvh) - 90px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
 .app-navigation>.top-nav-item,.app-navigation>.nav-group{flex-shrink:0}
 .op-line,.op-line[data-line=purchase]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .top-navigation-layout .topbar{height:auto;min-height:56px;padding-block:8px;flex-wrap:wrap}
 .breadcrumb{min-width:0;flex-wrap:wrap;row-gap:6px}
}
@media(max-width:600px){
 .op-line,.op-line[data-line=purchase],.count-line{grid-template-columns:minmax(0,1fr);gap:14px}
 .op-line{padding:17px 0 20px;margin-bottom:6px}
 .op-line>.btn{margin-top:0;justify-self:start;min-height:40px}
 .bento-ui dialog[open]{position:fixed;top:var(--visible-center,50dvh);bottom:auto;translate:0 -50%;margin-block:0;max-height:calc(var(--visible-height,100dvh) - 24px)}
 .bento-ui .dialog-body{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}
/* Status messages carry no actions and must never intercept taps on lower controls. */
#toasts,.toast{pointer-events:none}

/* Operational readiness: clear, quiet guidance in the existing brand palette. */
#connection-feedback{padding:12px 22px;border-bottom:1px solid #eadcdf;background:#fff5f6;color:#6b353b;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;font-size:12px;line-height:1.9}
#connection-feedback[hidden]{display:none}
.readiness-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:22px;align-items:start}
.readiness-panel{padding:25px;min-width:0}
.readiness-panel>h2{font-size:19px;margin-top:0}
.readiness-panel p{line-height:2;font-size:12px}
.readiness-check{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:start;gap:12px;padding:17px 0;border-top:1px solid #eee}
.readiness-check h3{font-size:13px;margin:0 0 5px}
.readiness-check p{color:#777;margin:0;overflow-wrap:anywhere}
.readiness-status{width:32px;height:32px;display:grid;place-items:center;color:#c12533;background:#fff0f2;border-radius:50%}
.readiness-status.complete{color:#626262;background:#f1f1f1}
.readiness-backup{background:#f7f7f8;border:1px solid #eee;border-radius:17px;padding:20px;margin-block:19px}
.readiness-panel hr{border:0;border-top:1px solid #eee;margin-block:24px}
@media(max-width:900px){.readiness-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.readiness-panel{padding:19px}.readiness-check{grid-template-columns:32px minmax(0,1fr)}.readiness-check>.btn{grid-column:2;justify-self:start}}
html.fonts-pending #connection-feedback{visibility:hidden}
.operation-history-page{scroll-margin-top:110px}

/* Factory workflows keep the established neutral/red visual language. */
[hidden]{display:none!important}
.factory-panel{padding:24px;min-width:0}
.factory-panel>h2{font-size:18px;margin-block:26px 16px}
.factory-panel td small{display:block;color:#888}
.factory-material{padding:14px 0;border-block-end:1px solid #ececec}
.factory-material h3{font-size:13px}
.factory-ingredient{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto}
.factory-label{text-align:center;max-width:360px;margin:auto;break-inside:avoid;background:white;color:#222;padding:18px}
.factory-label>img{width:28px;height:34px;object-fit:contain}
.factory-label>svg{display:block;width:240px;max-width:100%;height:auto;margin:auto}
.factory-label>small{font-size:9px;overflow-wrap:anywhere}
#factory-video{display:block;width:100%;max-height:360px;background:#f1f1f1;border-radius:16px}
.label-print{background:white;padding:15mm}
@media(min-width:1001px){.nav-dropdown{max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain}}
@media(max-width:600px){.factory-panel{padding:15px}.factory-ingredient{grid-template-columns:minmax(0,1fr)}}
@media print{.label-print{padding:0}.label-print .factory-label{width:80mm;max-width:100%;border:1px solid #eee}.label-print .factory-label>svg{width:50mm}}
