/* MFOCAN UX v2 — cohesive dark cards, accessible controls, genuine action states */
.mf-x-page{background:#0c0c0f!important;color:#f7f7fa!important;min-height:calc(100dvh - 170px);padding:30px 17px 48px!important;box-sizing:border-box}
.mf-x-wrap{width:min(100%,750px);margin-inline:auto}
.mf-x-page h1{margin:5px 0 24px;font:800 clamp(1.55rem,5vw,2.35rem)/1.2 Manrope,system-ui;color:#fff!important;letter-spacing:-.04em;overflow-wrap:anywhere}
.mf-x-overline{color:#ff766a;letter-spacing:.14em;text-transform:uppercase;font-size:.72rem;font-weight:800;margin:16px 0 9px}
.mf-x-back{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;border-radius:12px;color:#fff;background:#1b1b21;border:1px solid #34343d;font:700 .87rem DM Sans,sans-serif;cursor:pointer;width:auto!important}
.mf-x-area{display:grid;gap:18px;min-width:0}
.mf-x-group{background:#15151a;border:1px solid #303039;border-radius:19px;padding:clamp(15px,4vw,22px);display:grid;gap:13px;min-width:0}
.mf-x-group>h2{color:#fff!important;font:800 1.06rem/1.35 Manrope,system-ui;margin:0 0 5px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.mf-x-group>h2 span{font-size:.72rem;border-radius:999px;background:#30303a;color:#d2d2dd;padding:4px 10px}
.mf-x-request{background:#202027;border:1px solid #3a3a43;border-radius:14px;padding:17px;display:grid;gap:12px;min-width:0;overflow-wrap:anywhere;color:#eeeef3}
.mf-x-request-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mf-x-category{font-size:.79rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#e5e5eb}
.mf-x-badge{border-radius:999px;padding:6px 10px;font-weight:800;font-size:.72rem;background:#38332a;color:#ffe0aa;border:1px solid #5f4e30;line-height:1.2;max-width:100%;overflow-wrap:anywhere}
.mf-x-badge.mf-x-accepted{background:#163727;color:#a4f3c5;border-color:#286541}
.mf-x-badge.mf-x-declined,.mf-x-badge.mf-x-cancelled{background:#452b2f;color:#ffb5b9;border-color:#65404a}
.mf-x-badge.mf-x-completed{background:#263953;color:#b6d5ff;border-color:#34557c}
.mf-x-job{font-size:1rem;line-height:1.6;color:#fff!important;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.mf-x-meta{display:grid;gap:8px;margin:0;padding:0}
.mf-x-meta>div{display:grid;grid-template-columns:minmax(70px,110px) minmax(0,1fr);align-items:start;gap:10px;font-size:.85rem;line-height:1.45}
.mf-x-meta dt{color:#a7a7b4;font-weight:650}.mf-x-meta dd{margin:0;color:#f2f2f7;overflow-wrap:anywhere}
.mf-x-actions{display:flex!important;flex-wrap:wrap;gap:9px;align-items:center;justify-content:flex-start;margin-top:5px}
.mf-x-actions .mf-x-btn{flex:0 1 auto;min-width:0}
.mf-x-btn{width:auto!important;min-height:43px!important;padding:11px 15px!important;display:inline-flex;gap:7px;align-items:center;justify-content:center;border-radius:11px!important;font-size:.85rem!important;font-weight:800!important;line-height:1.2;cursor:pointer;border:1px solid transparent;transition:background .15s,transform .15s}
.mf-x-btn:active{transform:scale(.98)}.mf-x-btn:disabled{opacity:.55;cursor:wait}
.mf-x-primary{background:#ef6258!important;color:#101012!important;border-color:#ef6258!important}
.mf-x-quiet{background:#292932!important;color:#f5f5fa!important;border-color:#454550!important}
.mf-x-danger{background:#39262b!important;color:#ffbfc0!important;border-color:#68343c!important}
.mf-x-notice,.mf-x-empty{padding:22px;border:1px dashed #464650;background:#19191f;border-radius:14px;color:#c7c7d1;line-height:1.55}
.mf-x-empty p{font-size:.87rem}.mf-x-link{background:transparent;border:0;color:#ff9388;text-decoration:underline;cursor:pointer}
.mf-x-panel{background:#1b1b21;border:1px solid #373740;border-radius:18px;padding:clamp(17px,4vw,25px);min-width:0;overflow-wrap:anywhere;margin-bottom:16px;color:#f6f6f8}
.mf-x-panel h2{color:#fff!important;font:800 1.22rem Manrope,system-ui;margin:7px 0 12px}
.mf-x-panel p{line-height:1.6}.mf-x-muted{color:#b2b2be!important;font-size:.88rem}
.mf-x-avatar{width:40px;height:40px;display:inline-grid;place-items:center;flex:none;border:1px solid #5e4146;border-radius:50%;background:#392329;color:#ffb9b1;font-weight:900}
.mf-x-avatar-lg{width:64px;height:64px;font-size:1.5rem}
.mf-x-listing{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#23232a;border:1px solid #404049;border-radius:11px;padding:14px;color:#fff;font-weight:800;flex-wrap:wrap}
.mf-x-listing small{font-weight:650;color:#bcbcc6}
.mf-x-form{display:grid;gap:13px;min-width:0;margin-top:14px}
.mf-x-form label,.mf-x-compose label{display:grid;gap:7px;font-size:.85rem;font-weight:700;color:#e7e7ed}
.mf-x-form input,.mf-x-form textarea,.mf-x-compose textarea{display:block;width:100%!important;min-width:0;max-width:100%;background:#101015!important;border:1px solid #484852!important;border-radius:12px!important;color:#f9f9fb!important;font-size:16px!important;padding:13px!important;box-sizing:border-box;resize:vertical;font-family:inherit}
.mf-x-form input:focus-visible,.mf-x-form textarea:focus-visible,.mf-x-compose textarea:focus-visible{outline:2px solid #f2877c;outline-offset:1px}
.mf-x-form p[role=status],.mf-x-feedback{color:#ffd6b6!important;font-size:.86rem;line-height:1.5}
.mf-x-thread-link{display:flex;gap:14px;width:100%!important;background:#1d1d23;color:#fff;padding:15px;align-items:center;border:1px solid #3a3a45;border-radius:14px;cursor:pointer;text-align:left;min-height:67px}
.mf-x-thread-text{flex:1;min-width:0;display:grid;gap:5px}.mf-x-thread-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bbb}
.mf-x-chat{display:flex;flex-direction:column;gap:12px;padding:13px;background:#131318;border:1px solid #2d2d36;border-radius:17px;max-height:min(57dvh,560px);min-height:160px;overflow-y:auto}
.mf-x-bubble{max-width:88%;border-radius:15px;padding:11px 14px;background:#303038;align-self:flex-start;overflow-wrap:anywhere}
.mf-x-bubble.mf-x-mine{align-self:flex-end;background:#61302f}
.mf-x-bubble small{color:#d4d4de;font-size:.68rem}.mf-x-bubble p{white-space:pre-wrap;color:#fff;margin:7px 0 0;line-height:1.5}
.mf-x-compose{display:grid;gap:11px;padding-top:12px}
.mf-x-rating-host{width:100%;min-width:0;text-align:left;padding:14px 0 0;box-sizing:border-box}
.mf-x-reviews{display:grid;gap:15px;background:#17171d;border:1px solid #34343e;border-radius:16px;padding:18px;text-align:left;color:#f9f9fb}
.mf-x-reviews h2,.mf-x-reviews h3{color:#fff!important;margin:0;font-weight:800;font-size:1.02rem}
.mf-x-reviews-head{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.mf-x-reviews-head h2{flex:1 0 100%}.mf-x-reviews-head strong{color:#ffb78b}.mf-x-reviews-head small{color:#bdbdc9}
.mf-x-review-list{display:grid;gap:10px}.mf-x-review{background:#22222b;border:1px solid #3c3c45;border-radius:12px;padding:12px}
.mf-x-review div{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.mf-x-stars{color:#ffc56e}.mf-x-review p{margin:7px 0;color:#f5f5fa!important;overflow-wrap:anywhere;line-height:1.5;white-space:pre-wrap}.mf-x-review small{color:#b2b2be}
.mf-x-rating{display:flex;gap:10px;flex-wrap:wrap;padding:12px 0;border:0;min-width:0}.mf-x-rating legend{color:#eee;font-size:.86rem;font-weight:750}.mf-x-rating label{display:flex;align-items:center;gap:5px;background:#2c2c34;border:1px solid #484853;border-radius:11px;padding:8px;cursor:pointer;color:#ffd18d}.mf-x-rating input{width:auto!important;accent-color:#ff887d}
.mf-x-profile-inline{padding:0 20px 17px}
/* Remaining legacy notifications/service request text must retain dark-on-light contrast. */
.mf-content #requests-list-container .mf-x-request,.mf-content #notifications-container .mf-x-request{color:#f7f7fa}
.mf-content .mf-x-request *{text-shadow:none!important}
.mf-app-view .mf-content .mf-x-page .mf-x-wrap{min-width:0}
@media(max-width:420px){.mf-x-page{padding:23px 12px 36px!important}.mf-x-request{padding:14px}.mf-x-meta>div{grid-template-columns:78px minmax(0,1fr)}.mf-x-actions .mf-x-btn{flex:1 1 auto}.mf-x-group{padding:12px}.mf-x-rating-host{padding:12px 0 0}.mf-x-reviews{padding:13px}}
@media(prefers-reduced-motion:reduce){.mf-x-btn{transition:none}}

.mf-x-listing-link{width:100%!important;text-align:left;cursor:pointer}.mf-x-listing-link:hover{background:#2f2f38}


/* MFOCAN photo avatar: predictable on 320px phones through desktop */
#auth-status{position:relative!important}.mf-account-menu{position:relative!important}
.mf-account-menu summary{position:relative;display:flex!important;align-items:center;gap:5px}
.mf-header-avatar-face{position:relative;display:inline-grid;place-items:center;overflow:hidden;width:29px;height:29px;flex:none;border-radius:50%;background:#252631;color:#fff;font-weight:800;font-size:14px;isolation:isolate}
.mf-user-photo{display:block;position:absolute;inset:0;width:100%!important;height:100%!important;max-width:100%!important;border-radius:inherit;object-fit:cover;z-index:1}
#auth-status > .mf-avatar-add{position:absolute!important;left:21px;bottom:-4px;z-index:4;display:grid!important;place-items:center!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;padding:0!important;border:2px solid #111116!important;border-radius:50%!important;background:#f26355!important;color:#111!important;font:900 13px/1 system-ui!important;cursor:pointer!important}
.mf-avatar-add:focus-visible,.mf-avatar-manage:focus-visible,.mf-avatar-editor button:focus-visible,.mf-avatar-pick:focus-within{outline:2px solid #ffe2a4;outline-offset:3px}
.mf-user-avatar{position:relative;isolation:isolate;overflow:hidden}
.mf-avatar-settings-image{width:68px!important;height:68px!important;font-size:27px!important}
.mf-avatar-setting{display:flex;align-items:center;gap:16px;border-radius:15px;padding:13px;background:#232329;border:1px solid #3c3c46;margin-bottom:20px}
.mf-avatar-setting strong{color:#fff;font-weight:800}.mf-avatar-setting p{color:#b9b9c6;font-size:12px;line-height:1.35;margin:4px 0 11px}
.mf-avatar-manage{color:#fff;background:#34343c;border:1px solid #565661;border-radius:9px;padding:9px 12px;font-weight:750;min-height:40px;cursor:pointer}
.mf-avatar-dialog{position:fixed!important;inset:0!important;max-width:min(92vw,390px);width:min(92vw,390px);max-height:90dvh;box-sizing:border-box;padding:0;border:1px solid #404048;border-radius:20px;background:#19191f;color:#fff;box-shadow:0 28px 90px #0009;overflow:auto}
.mf-avatar-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
.mf-avatar-editor{padding:22px;display:grid;gap:13px}.mf-avatar-editor-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.mf-avatar-editor h2{font:800 20px/1.3 system-ui;margin:0;color:#fff}.mf-avatar-close{background:#31313b;color:#fff;border:1px solid #555;border-radius:10px;font-size:24px;width:36px;height:36px;cursor:pointer}
.mf-avatar-preview{width:140px;height:140px;display:grid;place-items:center;background:#32323b;border:2px solid #555563;border-radius:50%;position:relative;overflow:hidden;justify-self:center;font:900 46px system-ui;color:#ffc0b9}
.mf-avatar-preview img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}
.mf-avatar-hint{font-size:12px!important;color:#c7c7d1!important;text-align:center;margin:0!important;line-height:1.6}
.mf-avatar-pick,.mf-avatar-save,.mf-avatar-neutral{border-radius:11px;padding:12px 14px;text-align:center;cursor:pointer;font:750 14px system-ui;min-height:44px;box-sizing:border-box}
.mf-avatar-pick{display:block;background:#33333c;color:#fff;border:1px dashed #888}
.mf-avatar-pick input{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;opacity:0}
.mf-avatar-buttons{display:flex;gap:10px}.mf-avatar-buttons button{flex:1;min-width:0}.mf-avatar-save{background:#f26355;color:#101012;border:1px solid #f26355}.mf-avatar-neutral{background:#282830;color:#fff;border:1px solid #555563}.mf-avatar-buttons button:disabled{opacity:.5;cursor:default}
#mf-avatar-feedback{min-height:1em;margin:0;color:#ffd1b8;font-size:13px;text-align:center;line-height:1.5}
@media(max-width:350px){.mf-avatar-setting{gap:10px}.mf-avatar-editor{padding:17px}}
