/* XizmatBOR 5.0 — big rounded surfaces, tinted icon tiles, warm hero.
   Colours stay the 4.0 palette (white/grey + yellow, dark grey at night).
   Everything new is prefixed u5- so older pages are not affected. */
:root{--u5-r:28px;--u5-r2:20px;--u5-shadow:0 1px 2px rgba(17,24,39,.05),0 8px 24px rgba(17,24,39,.05);
 --u5-tile:#fff4c2;--u5-tile-ic:#8a6200;--u5-hero:linear-gradient(180deg,#ffd84a 0%,#ffe78a 20%,#fff3c4 44%,rgba(243,244,246,0) 78%);--u5-strip-ink:#15171a}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--u5-shadow:none;--u5-tile:#2b2610;--u5-tile-ic:#ffd21f;--u5-hero:linear-gradient(180deg,#5c4808 0%,#3a2f0b 24%,#1f1b0f 50%,rgba(18,19,22,0) 82%)}}
:root[data-theme=dark]{--u5-shadow:none;--u5-tile:#2b2610;--u5-tile-ic:#ffd21f;--u5-hero:linear-gradient(180deg,#5c4808 0%,#3a2f0b 24%,#1f1b0f 50%,rgba(18,19,22,0) 82%)}

/* ---------- Page frame ---------- */
.u5{width:100%;max-width:760px;margin:0 auto;padding:6px 0 28px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;min-width:0}
.u5 *,.u5 *:before,.u5 *:after{box-sizing:border-box}
.u5 a{text-decoration:none}

/* Home: warm hero behind the header, header becomes "avatar + greeting". */
body.u5-home{background-color:var(--bg)!important;background-image:var(--u5-hero)!important;background-repeat:no-repeat!important;background-size:100% 460px!important;background-attachment:scroll!important}
body.u5-home main,body.u5-home .app-shell{background:transparent!important}
body.u5-home .topbar{position:relative!important;background:transparent!important;border-bottom:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
.u5-me{display:none}
body.u5-home .topbar .brand{display:none!important}
body.u5-home .u5-me{display:flex;align-items:center;gap:12px;min-width:0;flex:1;color:var(--text);text-decoration:none}
.u5-me .u5-ava{width:48px;height:48px;font-size:19px;border:2px solid rgba(255,255,255,.7)}
.u5-me span:last-child{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.u5-me small{font-size:13px;font-weight:600;color:var(--text);opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u5-me strong{font-size:19px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.u5-home .topbar .nav-actions{gap:10px;flex:none}
body.u5-home .topbar .icon-link,body.u5-home .topbar #menuOpen{width:44px;height:44px;border-radius:50%!important;background:var(--surface)!important;border:0!important;display:grid;place-items:center;color:var(--text)!important;box-shadow:var(--u5-shadow)}
@media (min-width:1100px){body.u5-home .u5-me{display:flex}}

/* ---------- Building blocks ---------- */
.u5-card{display:block;background:var(--surface);color:var(--text);border:0;border-radius:var(--u5-r);padding:20px;box-shadow:var(--u5-shadow);min-width:0}
a.u5-card{transition:transform .15s ease}
a.u5-card:active{transform:scale(.985)}
.u5-label{display:block;font-size:14px;font-weight:600;color:var(--muted);line-height:1.3}
.u5-big{display:block;margin-top:6px;font-size:clamp(26px,8.4vw,34px);font-weight:800;letter-spacing:-.02em;line-height:1.08;overflow-wrap:anywhere}
.u5-h2{margin:0;font-size:clamp(18px,5.6vw,21px);font-weight:800;letter-spacing:-.015em;line-height:1.2;color:var(--text)}
.u5-muted{margin:6px 0 0;color:var(--muted);font-size:14.5px;line-height:1.45}
.u5-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-width:0}
.u5-head .u5-h2{min-width:0;overflow:hidden;text-overflow:ellipsis}
.u5-row{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted)}
.u5-link{font-weight:700;font-size:15px;color:var(--brand)}
.u5-pill{display:inline-flex;align-items:center;gap:6px;flex:none;padding:8px 14px;border-radius:999px;background:var(--surface2);color:var(--text);font-weight:800;font-size:14px;white-space:nowrap}
.u5-pill.is-tint{background:var(--u5-tile);color:var(--u5-tile-ic)}
.u5-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;margin-top:16px;padding:0 20px;border-radius:18px;background:var(--action);color:var(--action-text)!important;font-weight:800;font-size:16px;text-align:center}
.u5-btn.is-ghost{background:var(--surface2);color:var(--text)!important}
.u5-ava{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#a07812,#ffd21f);color:#15171a;font-weight:800;font-size:17px}
.u5-ava img{width:100%;height:100%;object-fit:cover}

/* Quick actions: four tinted tiles in one card. Labels wrap to two lines, never overflow. */
.u5-card.u5-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:16px 2px}
.u5-quick a{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:2px 0;color:var(--text);text-align:center;border-radius:16px}
.u5-quick i{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:var(--u5-tile);color:var(--u5-tile-ic);font-style:normal}
.u5-quick span{font-size:clamp(10.5px,3.3vw,13px);font-weight:700;line-height:1.2;letter-spacing:-.015em;max-width:100%;overflow-wrap:normal;word-break:normal;hyphens:manual}

/* Master: earnings card with the readiness strip tucked underneath. */
.u5-earn{position:relative;z-index:1}
.u5-stats3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}
.u5-stats3.is-top{margin-top:12px}
.u5-stats3 a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:2px 4px;color:var(--text);min-width:0}
.u5-stats3 a+a{border-left:1px solid var(--line)}
.u5-stats3 b{font-size:20px;font-weight:800;line-height:1.2}
.u5-stats3 small{font-size:clamp(11px,3.1vw,12.5px);font-weight:600;color:var(--muted);line-height:1.25;text-align:center;max-width:100%;overflow-wrap:normal}
.u5 .u5-strip{display:flex;justify-content:flex-start;align-items:center;gap:14px;margin:-40px 0 0!important;padding:54px 18px 16px 20px!important;border:0!important;border-radius:0 0 var(--u5-r) var(--u5-r)!important;background:var(--action);color:var(--u5-strip-ink);transition:background-color .25s ease}
.u5 .u5-strip.is-off{background:var(--surface2);color:var(--text)}
.u5-strip-copy{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.u5-strip-copy strong{font-size:16px;font-weight:800;line-height:1.25}
.u5-strip-copy small{font-size:13px;line-height:1.35;opacity:.78}
.u5-strip-copy .u5-strip-status:empty{display:none}
.u5-switch{flex:0 0 58px}
.u5-strip .u5-switch span{background:rgba(21,23,26,.18)!important;border-color:transparent!important}
.u5-strip .u5-switch input:checked+span{background:#15171a!important;border-color:#15171a!important}
.u5-strip .u5-switch span:before{background:#fff!important}
.u5-strip.is-off .u5-switch span{background:var(--surface3)!important}

/* Active order: two facts side by side and what happens next. */
.u5-active .u5-title{display:block;margin-top:4px;font-size:22px;font-weight:800;letter-spacing:-.015em;line-height:1.2;overflow-wrap:anywhere}
.u5-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:16px}
.u5-two>span{display:flex;flex-direction:column;gap:2px;min-width:0;padding-right:12px}
.u5-two>span+span{border-left:1px solid var(--line);padding:0 0 0 16px}
.u5-two small{font-size:13.5px;color:var(--muted);font-weight:500}
.u5-two b{font-size:17px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u5-alert{display:flex;align-items:center;gap:12px;margin-top:16px;padding:12px 14px;border-radius:18px;background:var(--u5-tile);color:var(--text);font-weight:700;font-size:14.5px;line-height:1.35}
.u5-alert i{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--action);color:#15171a;font-style:normal}
.u5-alert span{flex:1;min-width:0}
.u5-alert.is-hot i{animation:u5-ping 2s infinite}
.u5-alert.is-bad{background:color-mix(in srgb,var(--bad) 14%,var(--surface))}
.u5-alert.is-bad i{background:var(--bad);color:#fff}
@keyframes u5-ping{0%{box-shadow:0 0 0 0 rgba(255,198,0,.55)}70%{box-shadow:0 0 0 10px rgba(255,198,0,0)}100%{box-shadow:0 0 0 0 rgba(255,198,0,0)}}
.u5-more{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:-4px;padding:8px;font-weight:700;font-size:14px;color:var(--brand)}

/* Category grid: 4 per row on phones, larger tiles. */
.u5-section{padding:4px 0}
.u5-section .u5-head{padding:0 4px}
.u5-grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 6px}
.u5-grid4 a{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;color:var(--text);text-align:center}
.u5-grid4 i{display:grid;place-items:center;width:100%;max-width:72px;aspect-ratio:1;border-radius:22px;background:var(--u5-tile);color:var(--u5-tile-ic);font-style:normal}
.u5-grid4 i svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.u5-grid4 span{font-size:clamp(11px,3.2vw,12.5px);font-weight:700;line-height:1.25;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}

/* Moderator tools: smaller tiles, wrap freely. */
.u5-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px}
.u5-tiles a{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;min-width:0;padding:12px 6px;border-radius:20px;background:var(--surface2);color:var(--text);text-align:center}
.u5-tiles i{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--u5-tile);color:var(--u5-tile-ic);font-style:normal}
.u5-tiles span{font-size:12px;font-weight:700;line-height:1.25;overflow-wrap:break-word;hyphens:manual}

/* Lists inside a card */
.u5-list{display:flex;flex-direction:column}
.u5-item{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 0;color:var(--text);border-top:1px solid var(--line)}
.u5-item:first-child{border-top:0}
.u5-item>i{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--u5-tile);color:var(--u5-tile-ic);font-style:normal}
.u5-item-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.u5-item-copy b{font-size:15.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u5-item-copy small{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u5-item-end{flex:none;display:inline-flex;align-items:center;gap:4px;font-weight:800;font-size:15px}
.u5-item>.xb-icon{flex:none;color:var(--muted)}
.u5-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:14px 8px 6px;color:var(--muted)}
.u5-empty i{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:var(--u5-tile);color:var(--u5-tile-ic);font-style:normal}
.u5-empty p{margin:6px 0 0;color:var(--text);font-weight:700}

/* Two square shortcuts */
.u5-squares{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.u5-square{display:flex;flex-direction:column;justify-content:space-between;min-height:124px}
.u5-square i{color:var(--u5-tile-ic);font-style:normal}
.u5-square b{font-size:clamp(14px,4.4vw,17px);font-weight:800;line-height:1.2;overflow-wrap:anywhere}

/* Six-month income bars */
.u5-bars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:end;height:120px}
.u5-bars span{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%}
.u5-bars i{display:block;width:100%;max-width:34px;border-radius:10px;background:var(--surface3)}
.u5-bars .is-now i{background:var(--action)}
.u5-bars small{font-size:12px;color:var(--muted);font-weight:600}

.u5-focus .u5-h2{font-size:23px}
.u5-mid{display:block;margin:-4px 0 14px;font-size:24px;font-weight:800;letter-spacing:-.015em}
@supports not (aspect-ratio:1){.u5-grid4 i{height:68px}}

/* Small phones: tighter but never cramped. */
@media (max-width:360px){
 .u5-card{padding:18px;border-radius:24px}
 .u5-quick i{width:46px;height:46px;border-radius:15px}
 .u5-quick span{font-size:12px}
 .u5 .u5-strip{padding:52px 14px 14px 16px!important;gap:10px}
 .u5-strip-copy strong{font-size:15px}
 .u5-two b{font-size:15.5px}
 .u5-grid4{gap:12px 4px}
 .u5-grid4 i{border-radius:18px}
 .u5-me .u5-ava{width:42px;height:42px}
 .u5-me strong{font-size:17px}
 body.u5-home .topbar .icon-link,body.u5-home .topbar #menuOpen{width:40px;height:40px}
}
/* Wider screens: two columns for the lower cards. */
@media (min-width:760px){
 .u5{padding-top:14px}
 .u5-squares{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.u5-alert.is-hot i{animation:none}a.u5-card{transition:none}}

/* ---------- Page header, segmented tabs, search, chips ---------- */
.u5-pagehead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 2px}
.u5-pagehead h1{margin:0;font-size:clamp(28px,8.6vw,34px);font-weight:800;letter-spacing:-.025em;line-height:1.1;color:var(--text);min-width:0;overflow-wrap:break-word}
.u5-round{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:var(--surface);color:var(--text);box-shadow:var(--u5-shadow);border:0}
.u5-round.is-y{background:var(--action);color:var(--action-text)}
.u5-seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:4px;border-radius:18px;background:var(--surface2)}
.u5-seg a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:6px 8px;border-radius:14px;color:var(--muted);font-weight:700;font-size:clamp(12.5px,3.6vw,14px);text-align:center;line-height:1.2}
.u5-seg a.is-on{background:var(--surface);color:var(--text);box-shadow:var(--u5-shadow)}
.u5-search{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px 0 16px;border-radius:18px;background:var(--surface);color:var(--muted);box-shadow:var(--u5-shadow);margin:0}
.u5-search input{flex:1;min-width:0;height:50px;border:0!important;outline:0;background:transparent!important;color:var(--text);font:inherit;font-size:16px;padding:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.u5-search input::placeholder{color:var(--muted)}
.u5-search input::-webkit-search-cancel-button{display:none}
.u5-search:focus-within{outline:2px solid var(--focus);outline-offset:1px}
.u5-search-x{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--surface2);color:var(--muted)}
.u5-searchrow{position:relative;display:flex;align-items:center;gap:10px}
.u5-searchrow .u5-search{flex:1;min-width:0}
.u5-searchrow .u5-round{width:52px;height:52px;border-radius:18px;cursor:pointer;list-style:none}
.u5-sort>summary::-webkit-details-marker{display:none}
.u5-sort>summary::marker{content:''}
.u5-sort-body{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:30;padding:16px;border-radius:22px;background:var(--surface);box-shadow:0 12px 40px rgba(17,24,39,.18);display:flex;flex-direction:column;gap:12px;border:1px solid var(--line)}
.u5-chips{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:0;padding:2px 2px 6px;-webkit-overflow-scrolling:touch}
.u5-chips::-webkit-scrollbar{display:none}
.u5-chips>a{display:inline-flex;align-items:center;flex:none;min-height:40px;padding:0 16px;border-radius:999px;background:var(--surface);color:var(--text);font-weight:700;font-size:14px;white-space:nowrap;box-shadow:var(--u5-shadow)}
.u5-chips>a.is-on{background:var(--action);color:var(--action-text)}
.u5-radio{display:flex;flex-direction:column;gap:4px}
.u5-radio label,.u5-check{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 4px;font-weight:600;cursor:pointer}
.u5-radio input,.u5-check input{width:20px;height:20px;accent-color:#d9a400;flex:none;margin:0}
.u5-sort-actions{display:flex;gap:10px;flex-wrap:wrap}
.u5-sort-actions .u5-btn{margin:0;flex:1 1 140px}

/* ---------- Order cards ---------- */
.u5-olist{display:flex;flex-direction:column;gap:12px}
.u5-order{display:flex;flex-direction:column;gap:6px}
.u5-order.is-urgent{box-shadow:inset 4px 0 0 var(--bad),var(--u5-shadow)}
.u5-order-top{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin-bottom:4px}
.u5-id{margin-left:auto;color:var(--muted);font-weight:700;font-size:13.5px}
.u5-tag{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;background:var(--surface2);color:var(--text);font-size:12px;font-weight:700;white-space:nowrap}
.u5-tag.is-hot{background:color-mix(in srgb,var(--bad) 14%,var(--surface));color:var(--bad)}
.u5-otitle{font-size:clamp(17px,5vw,19px);font-weight:800;line-height:1.25;letter-spacing:-.01em;color:var(--text);overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.u5-meta{font-size:13.5px;color:var(--muted);font-weight:600;line-height:1.35}
.u5-desc{font-size:14px;color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word}
.u5-foot{display:flex;align-items:center;gap:10px;margin-top:8px;padding-top:12px;border-top:1px solid var(--line)}
.u5-foot b{font-size:16.5px;font-weight:800;min-width:0;overflow-wrap:break-word}
.u5-foot small{margin-left:auto;color:var(--muted);font-size:12.5px;white-space:nowrap}
.u5-foot .xb-icon{flex:none;color:var(--muted)}
.u5-foot b+.xb-icon{margin-left:auto}
.u5 .status-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:12.5px;font-weight:700;white-space:nowrap;border:0}
.u5-empty.is-page{padding:28px 20px}
.u5-empty.is-page .u5-btn{align-self:stretch;margin-top:14px}
.u5>.u5-btn{margin-top:4px}
@media (min-width:900px){.u5-olist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- Site-wide surface language (5.0) ---------- */
.card{border-radius:24px!important;border:0!important;box-shadow:var(--u5-shadow)!important;background:var(--surface)}
.section-head h1,.page-title{letter-spacing:-.02em}

/* ---------- Order page ---------- */
.u5-ohero{padding:20px!important}
.u5-ohero h1{margin:10px 0 4px;font-size:clamp(23px,7vw,30px);font-weight:800;letter-spacing:-.02em;line-height:1.15;overflow-wrap:break-word}
.u5-pricebox{display:flex;flex-direction:column;gap:2px;margin-top:14px;padding:14px 16px;border-radius:18px;background:var(--surface2)}
.u5-pricebox small{font-size:13px;color:var(--muted);font-weight:600}
.u5-pricebox strong{font-size:clamp(19px,5.8vw,24px);font-weight:800;letter-spacing:-.01em;line-height:1.2;overflow-wrap:break-word}
.u5-stage{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:14px 0 6px}
.u5-stage span{display:flex;flex-direction:column;gap:7px;min-width:0}
.u5-stage i{display:block;height:6px;border-radius:3px;background:var(--surface3)}
.u5-stage .is-done i{background:var(--action)}
.u5-stage .is-now i{background:linear-gradient(90deg,var(--action) 0 55%,var(--surface3) 55%);background-size:200% 100%;animation:u5-fill 1.8s ease-in-out infinite alternate}
.u5-stage small{font-size:clamp(10.5px,3.1vw,12px);font-weight:600;color:var(--muted);text-align:center;line-height:1.2;overflow-wrap:normal}
.u5-stage .is-now small{color:var(--text);font-weight:800}
@keyframes u5-fill{from{background-position:100% 0}to{background-position:0 0}}
.u5-offer{display:flex;flex-direction:column;gap:10px;padding:18px!important}
.u5-offer-head{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;color:var(--text)}
.u5-offer-head .u5-ava{width:48px;height:48px}
.u5-offer-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.u5-offer-who b{font-size:16px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u5-offer-who small{display:flex;align-items:center;gap:3px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);font-weight:600}
.u5-offer-who small .xb-icon{color:#e7a500}
.u5-offer-price{font-size:16.5px;font-weight:800;white-space:nowrap;text-align:right}
.u5-offer-marks{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.u5-offer-marks:empty{display:none}
.u5-offer-msg{margin:0;padding:12px 14px;border-radius:16px;background:var(--surface2);font-size:14.5px;line-height:1.45;overflow-wrap:break-word}
.u5-offer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:4px}
.u5-offer-foot form{flex:1 1 180px;display:flex;justify-content:flex-end}
.u5-offer-foot .u5-btn{margin:0;min-height:48px;width:100%;max-width:260px}
@media (max-width:360px){.u5-offer-head{grid-template-columns:44px minmax(0,1fr);}.u5-offer-price{grid-column:1/-1;text-align:left;font-size:18px}.u5-offer-head .u5-ava{width:44px;height:44px}}
@media (prefers-reduced-motion:reduce){.u5-stage .is-now i{animation:none}}
.gps-app{border:0!important;border-radius:18px!important;background:var(--surface2)!important;padding:8px 10px!important;gap:8px!important}
@media (max-width:360px){.gps-app{font-size:.9rem!important}.gps-app-logo{flex-basis:28px!important;width:28px!important;height:28px!important}}
.order-detail-layout .card>h2,.order-detail-layout .card .section-head h2,.order-stage-head h2,.order-offers .section-head h2{font-size:clamp(19px,5.6vw,21px)!important;font-weight:800!important;letter-spacing:-.015em}
.order-detail-layout .btn,.order-next-action .btn{border-radius:16px;min-height:48px}

/* ---------- Catalogue cards: picture on top, facts below ---------- */
.u5-cat .kw-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px}
.u5-cat .kw-card{position:relative;display:flex!important;flex-direction:column;padding:0!important;overflow:hidden}
.u5-cat .kw-card-main{display:flex!important;flex-direction:column!important;gap:0!important;color:var(--text);padding:0!important}
.u5-cat .kw-card-img{position:relative;display:grid!important;place-items:center;width:100%!important;height:auto!important;aspect-ratio:16/9;border-radius:0!important;background:var(--u5-tile);color:var(--u5-tile-ic);overflow:hidden;flex:none!important}
.u5-cat .kw-card-img img{width:100%;height:100%;object-fit:cover}
.u5-cat .kw-card-img svg{width:44px;height:44px}
.u5-cat .kw-card-cat{position:absolute;left:12px;bottom:12px;padding:5px 10px;border-radius:999px;background:rgba(21,23,26,.72);color:#fff;font-size:12px;font-weight:700}
.u5-cat .kw-card-body{display:flex!important;flex-direction:column;gap:8px;padding:16px 18px 6px!important;min-width:0}
.u5-cat .kw-card-title{font-size:17px!important;font-weight:800;line-height:1.3;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding-right:40px}
.u5-cat .kw-card-badges{display:flex;flex-wrap:wrap;gap:6px}
.u5-cat .kw-card-badges:empty{display:none}
.u5-cat .kw-card-rating{display:flex!important;align-items:center;flex-wrap:wrap;gap:4px;font-size:14px;white-space:nowrap}
.u5-cat .kw-card-rating .xb-icon{color:#e7a500}
.u5-cat .kw-card-rating small{color:var(--muted)}
.u5-cat .kw-card-foot{display:flex!important;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto;padding:12px 18px 16px!important;border-top:1px solid var(--line)}
.u5-cat .kw-card-master{display:inline-flex;align-items:center;gap:6px;min-width:0;font-weight:600;font-size:14px;color:var(--muted)}
.u5-cat .kw-card-price{font-size:16.5px;font-weight:800;white-space:nowrap}
.u5-cat .kw-heart-form{position:absolute;top:12px;right:12px;margin:0;z-index:2}
.u5-cat .kw-heart{width:40px;height:40px;border-radius:50%;background:var(--surface)!important;box-shadow:var(--u5-shadow);border:0!important}
.u5-cat .catalog-count{margin:2px 4px;color:var(--muted);font-size:14px}
.u5-cat .u5-sort-body .field{display:flex;flex-direction:column;gap:6px}
.u5-sort-body .field label{font-size:13.5px;font-weight:700;color:var(--muted)}
.u5-sort-body .select{width:100%}
.u5+.master-directory,.u5+.u5-cat{margin-top:12px}

/* ---------- Wallet: big centred balance on the warm hero ---------- */
body.u5-hero-page{background-color:var(--bg)!important;background-image:var(--u5-hero)!important;background-repeat:no-repeat!important;background-size:100% 520px!important}
body.u5-hero-page main,body.u5-hero-page .app-shell{background:transparent!important}
body.u5-hero-page .topbar{background:transparent!important;border-bottom:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.u5-wallet{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:6px 0 22px}
.u5-glass{background:rgba(21,23,26,.10);color:var(--text)}
:root[data-theme=dark] .u5-glass{background:rgba(255,255,255,.12)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .u5-glass{background:rgba(255,255,255,.12)}}
.u5-wallet small{margin-top:14px;font-size:15px;font-weight:700;color:var(--text);opacity:.8}
.u5-wallet strong{font-size:clamp(34px,11vw,46px);font-weight:800;letter-spacing:-.03em;line-height:1.05;overflow-wrap:anywhere}
.u5-tiles4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px}
.u5-tiles4 a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:92px;padding:10px 4px;border-radius:22px;background:var(--surface);color:var(--text);box-shadow:var(--u5-shadow);text-align:center;font-weight:700;font-size:clamp(11px,3.3vw,13px);line-height:1.2}
.u5-tiles4 .xb-icon{color:var(--u5-tile-ic)}
.u5-tiles4 span{overflow-wrap:normal}

/* ---------- Master's day plan: chips on top, title below, directions full width ---------- */
.plan-item{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 8px!important;padding:18px!important}
.plan-item .plan-time{order:0;grid-row:auto!important;align-self:auto!important;display:inline-flex!important;min-width:0!important;padding:5px 11px!important;border-radius:999px!important;font-size:12.5px!important;white-space:nowrap}
.plan-item .status-pill{order:1}
.plan-item .plan-copy{order:2;flex:1 1 100%;min-width:0;gap:4px}
.plan-item .plan-copy strong{font-size:17px;font-weight:800;line-height:1.25;overflow-wrap:break-word}
.plan-item .plan-copy small{font-size:13.5px;color:var(--muted);line-height:1.4;overflow-wrap:break-word}
.plan-item .plan-go{order:3;flex:1 1 100%;justify-content:center;border-radius:16px;min-height:46px}

/* ---------- Admin overview numbers: label wraps, never overlaps ---------- */
.admin-stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;gap:10px!important}
.admin-stat{min-width:0;padding:16px 10px 16px 12px!important;border-radius:22px!important}
.admin-stat>span:last-child{display:flex;flex-direction:column-reverse;gap:2px;min-width:0;width:100%}
.admin-stat small{display:block;font-size:11.5px;line-height:1.25;white-space:normal!important;overflow-wrap:anywhere;color:var(--muted)}
.admin-stat strong{display:block;font-size:clamp(20px,6.4vw,26px);font-weight:800;line-height:1.1;overflow-wrap:anywhere}
.admin-stat .settings-icon{background:var(--u5-tile);color:var(--u5-tile-ic)}
@media (min-width:1100px){body.u5-home .topbar #menuOpen{display:none!important}}

/* ---------- Guest home ---------- */
.u5-land-hero{padding:8px 4px 4px}
.u5-land-hero h1{margin:6px 0 10px;font-size:clamp(28px,8.8vw,44px);font-weight:800;letter-spacing:-.03em;line-height:1.08;color:var(--text)}
.u5-land-hero h1 span{display:block;color:var(--brand)}
.u5-land-search{display:flex;flex-direction:column;gap:10px}
.u5-search.is-inset{background:var(--surface2);box-shadow:none}
.u5-land-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.u5-land-row .select{min-height:52px;border-radius:16px}
.u5-land-row .u5-btn{margin:0}
@media (min-width:560px){.u5-land-row{grid-template-columns:minmax(0,1fr) auto}}
.u5-steps{list-style:none;margin:0 0 4px;padding:0;display:flex;flex-direction:column;gap:14px}
.u5-steps li{display:flex;gap:14px;align-items:flex-start}
.u5-steps i{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--u5-tile);color:var(--u5-tile-ic);font-style:normal}
.u5-steps span{display:flex;flex-direction:column;gap:2px;min-width:0}
.u5-steps b{font-size:16px;font-weight:800}
.u5-steps small{font-size:14px;color:var(--muted);line-height:1.4}
.u5-land-app{display:flex;flex-direction:column;gap:6px}
.u5-land-app b{font-size:18px;font-weight:800}
.u5-land-app .u5-btn{margin-top:10px}

/* ---------- Settings sections: three equal tabs that wrap, never cut ---------- */
.settings-section-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:4px!important;border-radius:18px;background:var(--surface2);overflow:visible!important;flex-wrap:nowrap}
.settings-section-nav a{grid-column:auto!important;min-width:0!important;min-height:44px;padding:6px 6px!important;border:0!important;border-radius:14px!important;font-size:clamp(12px,3.4vw,13.5px)!important;font-weight:700;line-height:1.2!important;white-space:normal!important;color:var(--muted);text-align:center;background:transparent}
.settings-section-nav a[aria-current],.settings-section-nav a.is-current,.settings-section-nav a:focus-visible{background:var(--surface);color:var(--text);box-shadow:var(--u5-shadow)}

/* ---------- Order form: compact service tiles, three per row on phones ---------- */
.service-picker{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.service-pick{min-height:88px!important;padding:10px 4px!important;border:0!important;border-radius:20px!important;background:var(--surface2)!important;font-size:clamp(11.5px,3.3vw,13px)!important}
.service-pick .service-pick-icon{background:var(--u5-tile)!important;color:var(--u5-tile-ic)!important}
.service-pick[aria-checked=true],.service-pick.is-selected{background:var(--u5-tile)!important;box-shadow:inset 0 0 0 2px var(--action)!important}
@media (min-width:600px){.service-picker{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* ---------- Inside the Android app (6.0 web shell) ---------- */
body.in-app .app-download,body.in-app .app-download-card,body.in-app .footer-app,body.in-app .u5-land-app{display:none!important}
body.in-app .footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
body.in-app{-webkit-tap-highlight-color:transparent}

/* ---------- 6.0 role switch: two explained modes ---------- */
.u5-mode{display:flex!important;flex-direction:column;gap:10px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.u5-mode-title{font-size:12.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.u5-mode-opts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.u5-mode-opt{position:relative;display:flex!important;flex-direction:column;align-items:flex-start!important;gap:4px;min-height:96px;padding:12px!important;border-radius:20px!important;border:1.5px solid var(--line)!important;background:var(--surface)!important;color:var(--text)!important;text-align:left;font:inherit;cursor:pointer;transition:transform .15s ease,border-color .2s,background .2s;box-shadow:none!important}
.u5-mode-opt i{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--surface2);color:var(--muted);font-style:normal}
.u5-mode-opt b{font-size:15px;font-weight:800}
.u5-mode-opt small{font-size:12px;line-height:1.3;color:var(--muted);font-weight:500}
.u5-mode-opt em{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#15171a;color:#ffd21f;font-style:normal}
.u5-mode-opt.is-on{border-color:var(--action)!important;background:var(--u5-tile)!important;cursor:default;opacity:1!important}
.u5-mode-opt.is-on i{background:var(--action);color:#15171a}
.u5-mode-opt:not(.is-on):active{transform:scale(.97)}
.u5-mode-note{display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 12px;border-radius:14px;background:var(--u5-tile);color:var(--text);font-size:13px;font-weight:600;line-height:1.35}
.u5-mode-note .xb-icon{flex:none;margin-top:1px;color:var(--u5-tile-ic)}
.u5-mode-note[hidden]{display:none}

/* ---------- 6.0 order opened in the other role ---------- */
.u5-role-lock{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px 14px;align-items:start;margin:12px 0;border:2px solid var(--action)!important}
.u5-role-lock-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--action);color:#15171a}
.u5-role-lock b{font-size:17px;font-weight:800;line-height:1.25}
.u5-role-lock .u5-muted{margin-top:4px}
.u5-role-lock form{grid-column:1/-1}
.u5-role-lock .u5-btn{margin:0;width:100%}
.is-role-locked .order-next-action,.is-role-locked .order-more-actions,.is-role-locked .stage-actions,.is-role-locked .u5-offer-foot form,.is-role-locked .gps-actions,.is-role-locked .price-change-card form,.is-role-locked .order-review-form{display:none!important}
.account-role .u5-mode-title{display:none}
.order-sticky-action:empty{display:none}
.u5-alldirs{padding:0!important}
.u5-alldirs>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;cursor:pointer;list-style:none;font-weight:800;font-size:16px}
.u5-alldirs>summary::-webkit-details-marker{display:none}
.u5-alldirs>summary span{display:inline-flex;align-items:center;gap:10px}
.u5-alldirs>summary small{display:inline-grid;place-items:center;min-width:26px;height:22px;padding:0 7px;border-radius:999px;background:var(--u5-tile);color:var(--u5-tile-ic);font-size:12px}
.u5-alldirs[open]>summary .xb-icon:last-child{transform:rotate(180deg)}
.u5-alldirs .u5-grid4{padding:4px 14px 18px}

/* ---------- 6.0 bottom navigation: one yellow pill that slides, nothing jumps ---------- */
.bottom-nav{isolation:isolate}
.bottom-nav a>span::before{display:none!important}
.bottom-nav a .xb-icon,.bottom-nav a[aria-current=page] .xb-icon,.bottom-nav a[aria-current=page] span{animation:none!important;transform:none!important}
.bottom-nav a[aria-current=page] .nav-icon,.bottom-nav a>span{background:transparent!important}
.u5-nav-pill{position:absolute;z-index:0;top:0;left:0;height:32px;border-radius:16px;background:var(--action);pointer-events:none;transition:transform .42s cubic-bezier(.22,.8,.24,1),width .42s cubic-bezier(.22,.8,.24,1);will-change:transform}
.bottom-nav a{position:relative;z-index:1}
.bottom-nav a[aria-current=page]>span,.bottom-nav a.u5-tap>span{color:var(--action-text)!important}
.bottom-nav a>span .xb-icon{transition:transform .25s ease!important}
.bottom-nav a.u5-tap>span .xb-icon{transform:scale(.9)!important}
@media (prefers-reduced-motion:reduce){.u5-nav-pill{transition:none}}

/* ---------- 6.0 toasts: from the top, countdown ring, close, swipe away ---------- */
.u5-toasts{position:fixed;z-index:2000;top:calc(10px + env(safe-area-inset-top));left:50%;width:min(100% - 24px,460px);transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;pointer-events:none}
.u5-toast{pointer-events:auto;display:flex;align-items:center;gap:12px;padding:12px 10px 12px 14px;border-radius:20px;background:#15171a;color:#fff;box-shadow:0 14px 40px rgba(0,0,0,.28);touch-action:pan-y;user-select:none;animation:u5-toast-in .48s cubic-bezier(.2,.9,.25,1.15) both;transition:transform .25s ease,opacity .25s ease}
:root[data-theme=dark] .u5-toast{background:#2a2c31}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .u5-toast{background:#2a2c31}}
.u5-toast.is-out{animation:u5-toast-out .3s ease forwards}
.u5-toast-ic{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#ffd21f;color:#15171a}
.u5-toast.is-error .u5-toast-ic{background:#f26464;color:#fff}
.u5-toast.is-info .u5-toast-ic{background:#4aa3ff;color:#fff}
.u5-toast-msg{flex:1;min-width:0;font-size:14.5px;font-weight:600;line-height:1.35;overflow-wrap:break-word}
.u5-toast-count{position:relative;display:grid;place-items:center;flex:none;width:34px;height:34px}
.u5-toast-count svg.ring{position:absolute;inset:0;width:34px;height:34px;transform:rotate(-90deg)}
.u5-toast-count circle{fill:none;stroke-width:2.6}
.u5-toast-count .track{stroke:rgba(255,255,255,.18)}
.u5-toast-count .bar{stroke:#ffd21f;stroke-linecap:round;stroke-dasharray:100.53;stroke-dashoffset:0}
.u5-toast-count b{position:relative;font-size:12px;font-weight:800;line-height:1}
.u5-toast-x{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.u5-toast-x:active{transform:scale(.92)}
@keyframes u5-toast-in{from{opacity:0;transform:translateY(-120%) scale(.96)}to{opacity:1;transform:none}}
@keyframes u5-toast-out{to{opacity:0;transform:translateY(-120%) scale(.96)}}
@media (prefers-reduced-motion:reduce){.u5-toast,.u5-toast.is-out{animation-duration:.01s}}
/* Flash messages become toasts (kept in the page only when scripts are off). */
.js .container>.alert[role=status]{display:none}
.u5-silent{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}

/* ---------- 6.0 logo: a short, calm wiggle every 8 seconds ---------- */
.brand-symbol svg,.u5-logo-anim svg{transform-origin:50% 92%;animation:u5-logo 8s ease-in-out infinite}
@keyframes u5-logo{0%,84%,100%{transform:none}87%{transform:translateY(-2.5px) rotate(-8deg)}90%{transform:translateY(0) rotate(6deg)}93%{transform:rotate(-3deg)}96%{transform:rotate(1deg)}}
@media (prefers-reduced-motion:reduce){.brand-symbol svg,.u5-logo-anim svg{animation:none}}

/* ---------- 6.0 side menu: compact header, tighter rhythm ---------- */
.drawer{padding-top:max(12px,env(safe-area-inset-top))!important}
.drawer-head.u5-dhead{display:flex;align-items:center;gap:10px;margin:0 0 12px!important;padding:6px 0 12px!important;border-bottom:1px solid var(--line)}
.u5-dhead-me{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:var(--text)!important;text-decoration:none}
.u5-dhead-me .u5-ava{width:46px;height:46px;font-size:18px}
.u5-dhead-me>span:last-child{display:flex;flex-direction:column;min-width:0}
.u5-dhead-me strong{font-size:16.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u5-dhead-me small{font-size:12.5px;color:var(--muted);font-weight:600}
.u5-dhead-brand{display:flex;align-items:center;gap:10px;flex:1;font-size:18px}
.drawer-head.u5-dhead #menuClose{flex:none;width:42px;height:42px;border-radius:50%}
.drawer .u5-mode{margin:0 0 12px}
.drawer .drawer-group h2,.drawer .drawer-section h2{margin:14px 0 4px!important}
.drawer .drawer-link{min-height:46px!important;padding-block:8px!important;border-radius:14px!important}
.message-archived{font-size:12.5px;font-style:italic;color:var(--muted);padding:2px 0 4px}

/* ---------- 6.0 services and portfolio: cards that open ---------- */
.u5-add{padding:0!important;overflow:hidden}
.u5-add>summary{list-style:none;margin:0;border-radius:var(--u5-r)!important;cursor:pointer}
.u5-add>summary::-webkit-details-marker{display:none}
.u5-add>summary small{margin-left:6px;padding:2px 8px;border-radius:999px;background:rgba(21,23,26,.12);font-size:12px}
.u5-add[open]>summary{border-radius:var(--u5-r) var(--u5-r) 0 0!important}
.u5-add-form{padding:16px 18px 18px;display:grid;gap:12px;animation:u5-open .28s ease both}
.u5-add-form .u5-btn{margin:0}
@keyframes u5-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.u5-pkg{padding:0!important}
.u5-pkg>summary{display:flex;align-items:center;gap:12px;padding:16px 16px 16px 18px;list-style:none;cursor:pointer}
.u5-pkg>summary::-webkit-details-marker{display:none}
.u5-pkg-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.u5-pkg-main b{font-size:16px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.u5-pkg-main small{font-size:13px;color:var(--muted)}
.u5-pkg-end{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.u5-pkg-end strong{font-size:15.5px;font-weight:800;white-space:nowrap}
.u5-pkg>summary>.xb-icon{flex:none;color:var(--muted);transition:transform .2s}
.u5-pkg[open]>summary>.xb-icon{transform:rotate(180deg)}
.u5-pkg.is-off{opacity:.75}
.u5-tag.is-on{background:color-mix(in srgb,var(--ok) 16%,var(--surface));color:var(--ok)}
.u5-btn.is-danger{background:color-mix(in srgb,var(--bad) 12%,var(--surface));color:var(--bad)!important}
.u5-pgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.u5-ph{padding:0!important;overflow:hidden}
.u5-ph>summary{list-style:none;cursor:pointer;display:flex;flex-direction:column}
.u5-ph>summary::-webkit-details-marker{display:none}
.u5-ph img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
.u5-ph>summary span{padding:8px 10px 10px;font-size:12.5px;font-weight:600;color:var(--muted);line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.u5-ph[open]{grid-column:1/-1}
.u5-ph[open] img{aspect-ratio:auto;max-height:60vh;object-fit:contain;background:#000}
@media (min-width:700px){.u5-pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- 6.0 loading line: logo + typed text, says what is happening ---------- */
.u5-loader{position:fixed;z-index:1900;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translate(-50%,20px);display:flex;align-items:center;gap:10px;padding:10px 16px 10px 12px;border-radius:999px;background:#15171a;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .3s cubic-bezier(.2,.9,.25,1.1);font-size:14px;font-weight:700;white-space:nowrap}
.u5-loader.is-on{opacity:1;transform:translate(-50%,0)}
.u5-loader .xb-icon{color:#ffd21f;animation:u5-pinhop 1.1s ease-in-out infinite;transform-origin:50% 90%}
.u5-loader .caret{display:inline-block;width:2px;height:1em;margin-left:2px;background:#ffd21f;vertical-align:-2px;animation:u5-caret .9s steps(1) infinite}
@keyframes u5-pinhop{0%,100%{transform:translateY(0)}45%{transform:translateY(-4px)}60%{transform:translateY(0) scaleY(.92)}}
@keyframes u5-caret{50%{opacity:0}}
body:not(:has(.bottom-nav)) .u5-loader{bottom:calc(24px + env(safe-area-inset-bottom))}
@media (prefers-reduced-motion:reduce){.u5-loader .xb-icon,.u5-loader .caret{animation:none}}

/* 7.0: a closed side menu casts no shadow onto the page edge. */
.drawer:not(.open){box-shadow:none!important}

/* 7.0: inside the Android app the shell already keeps the page below the status bar,
   but the WebView still reports a top safe-area inset; counting it again left a gap. */
body.in-app .c7-top{padding-top:8px!important}
body.in-app .c7-viewer button,body.in-app .xb-lightbox button{top:12px!important}
body.in-app .drawer{padding-top:12px!important}
body.in-app .u5-toasts{top:10px!important}
body.in-app .xb-toast{top:76px!important}
body.in-app .gps-panel{top:12px!important}

/* 7.0: some older rules ask for --surface-2; it is the same colour as --surface2 (day and night). */
:root{--surface-2:var(--surface2)}
/* 7.0: comment boxes grow with the text instead of starting huge. */
textarea.textarea{min-height:76px!important;resize:none;transition:height .12s ease;line-height:1.45}
.order-next-action textarea.textarea{min-height:76px!important}
/* 7.0: activity in both roles on profile pages. */
.r7-roles{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0}
.r7-roles.is-two{grid-template-columns:1fr 1fr}
@media (max-width:360px){.r7-roles.is-two{grid-template-columns:1fr}}
.r7-tile{display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px;border-radius:22px;background:var(--surface);box-shadow:var(--u5-shadow,0 8px 24px rgba(17,24,39,.05))}
.r7-tile>small{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.r7-big{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.r7-big b{font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1}
.r7-big span{font-size:13.5px;color:var(--muted);font-weight:650}
.r7-meta{display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--muted);min-height:18px}
.r7-level{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.r7-chip{align-self:flex-start;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:800;background:var(--surface2);color:var(--text)}
.r7-chip.r7-l1{background:#e0f2fe;color:#075985}.r7-chip.r7-l2{background:#dcfce7;color:#166534}.r7-chip.r7-l3{background:#ede9fe;color:#5b21b6}.r7-chip.r7-l4{background:#fff4c2;color:#8a6200}
.r7-bar{display:block;height:6px;border-radius:3px;background:var(--surface2);overflow:hidden}
.r7-bar em{display:block;height:100%;border-radius:3px;background:var(--action,#ffd21f);transition:width .6s ease}
.r7-level small{font-size:12px;color:var(--muted)}
.r7-tile.is-client .r7-bar em{background:#3b82f6}
/* 7.0 Devices and sessions */
.s7{display:flex;flex-direction:column;gap:12px;max-width:760px;margin:0 auto}
.s7-card{padding:16px;border-radius:24px;background:var(--surface);box-shadow:var(--u5-shadow,0 8px 24px rgba(17,24,39,.05))}
.s7-card h2{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.s7-card h2 span{min-width:22px;height:22px;padding:0 7px;border-radius:11px;display:inline-grid;place-items:center;background:var(--surface2);color:var(--text);font-size:12px}
.s7-row,.s7-hist{display:flex;align-items:center;gap:12px;padding:10px 0;min-width:0}
.s7-row+.s7-row,.s7-hist+.s7-hist{border-top:1px solid var(--line)}
.s7-ic{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--surface2);color:var(--text)}
.s7-row.is-me .s7-ic{background:var(--u5-tile,#fff4c2);color:var(--u5-tile-ic,#8a6200)}
.s7-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.s7-main b{font-size:15.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s7-main small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.s7-time.is-on{color:#16a34a;font-weight:700}
.s7-x{width:38px;height:38px;border-radius:50%;border:0;background:var(--surface2);color:var(--muted);display:grid;place-items:center;cursor:pointer}
.s7-x:hover{background:#fee2e2;color:#dc2626}
.s7-end-all{margin-top:8px}
.s7-danger{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:16px;background:#fee2e2;color:#b91c1c;font:inherit;font-weight:800;cursor:pointer}
.s7-empty{margin:6px 0;color:var(--muted)}
.s7-hist i{flex:none;width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2)}
.s7-hist.is-fail i{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.2)}
.s7-hist.is-fail b{color:#dc2626}
.s7-hist time{flex:none;font-size:13px;color:var(--muted)}
.s7-warn{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:18px;background:#fef3c7;color:#92400e;font-size:14px;font-weight:600}
.s7-warn span{flex:1;min-width:200px}
.s7-warn a{color:inherit;font-weight:800}

/* 9.0: other cabinet news */
.u5-mode-opt .r9-count{position:absolute;top:10px;right:10px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--bad,#e5484d);color:#fff;font-size:12px;font-weight:800;line-height:22px;text-align:center;font-style:normal}
.u5-mode-opt .r9-count[hidden]{display:none}
.r9-news{color:var(--text)!important}
.r9-news svg{color:var(--bad,#e5484d)}
.avatar-trigger{position:relative}
.r9-menu-dot{position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--bad,#e5484d);box-shadow:0 0 0 2px var(--surface,#fff)}
.r9-menu-dot[hidden]{display:none}
.r9-cabinet{display:inline-flex;align-items:center;gap:6px;margin-top:4px;padding:4px 10px;border-radius:999px;background:var(--surface2);color:var(--muted);font-size:12.5px;font-weight:700}
.c7-list-head .r9-cabinet{margin-left:auto}
/* 14.0: the see-through header of hero pages gets its own frame once the page scrolls, so the logo and buttons never sit on top of the content */
body.u5-hero-page .topbar{transition:background-color .2s,box-shadow .2s,border-color .2s}
body.u5-hero-page.is-scrolled .topbar{background:var(--surface)!important;border-bottom:1px solid var(--line)!important;box-shadow:0 6px 18px rgba(17,24,39,.06)!important}
/* 18.0: toasts without a close button — a thin line shows how long it stays; tap or swipe puts it away */
.u5-toast{position:relative;overflow:hidden;padding:13px 16px;cursor:pointer}
.u5-toast-line{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffd21f;transform-origin:left center;opacity:.85}
.u5-toast.is-error .u5-toast-line{background:#ff6b6b}
.ln14-x{display:none!important}
