/* 1.1.262 owner: Settings in the owner's new design. Only #profile-view (Settings) is styled here;
   the bottom navigation and every other page keep their old look. */
#profile-view.settings-new{--sd-green:#1f9d3a;--sd-green2:#0f7a2a;--sd-shadow:0 6px 18px #1e3a5f14,0 1px 3px #1e3a5f0d}

/* Picture at the top stays as before (owner); only the logo tile and the owner's Admin Dashboard pill. */
#profile-view.settings-new .settings-profile-avatar{flex:0 0 84px;width:84px;height:84px;border:0;border-radius:24px;background:#fff;box-shadow:0 8px 20px #0004;padding:8px}
#profile-view.settings-new .settings-profile-avatar>img{border-radius:16px;object-fit:contain}
#profile-view.settings-new .sd-owner .settings-profile-copy,#profile-view.settings-new .sd-owner .settings-profile-chevron{display:none}
#profile-view.settings-new .sd-admin{display:flex;align-items:center;gap:16px;min-width:0}
#profile-view.settings-new .sd-divider{display:block;width:2px;height:58px;border-radius:2px;background:#ffffffb3}
#profile-view.settings-new .sd-admin-pill{display:inline-flex;align-items:center;gap:9px;padding:9px 18px 9px 13px;border:2.5px solid #facc15;border-radius:999px;background:linear-gradient(180deg,#22a83f,#0f7a2a);color:#fff;font-size:17px;font-weight:800;white-space:nowrap;box-shadow:0 0 0 3px #facc1533,0 6px 16px #0005}
#profile-view.settings-new .sd-admin-pill svg{width:24px;height:24px;flex:none}


/* 1.1.578 owner: Settings redrawn. Flat calm cards (no glossy shadows), ONE icon style (line icon on a soft tint),
   one segmented control, one row height, uniform widths. The top picture and the owner's pill are unchanged. */
#profile-view.settings-new{--sd-ink:#16222d;--sd-mute:#657484;--sd-line:#e4eaf0;--sd-card:#fff;--sd-chev:#a1adba;--sd-seg:#edf1f5;--sd-segtx:#4a5968}
:root[data-theme="dark"] #profile-view.settings-new{--sd-ink:#eaf2ec;--sd-mute:#a3b3a9;--sd-line:#2a3a30;--sd-card:#17231c;--sd-chev:#6f8277;--sd-seg:#223128;--sd-segtx:#c9d8cd}

/* Title */
#profile-view.settings-new .settings-header .eyebrow{display:none}
#profile-view.settings-new .settings-header{margin:4px 2px 14px}
#profile-view.settings-new .settings-header h2{margin:0 0 4px;font-size:30px;font-weight:800;letter-spacing:-.4px;color:var(--sd-ink)}
#profile-view.settings-new .settings-header p{margin:0;font-size:14px;font-weight:500;line-height:1.4;color:var(--sd-mute)}

/* Inside another shop's app the "Create <shop> app" row replaces Add to Home Screen. */
#profile-view.settings-new .settings-card:has(#create-own-app-action) #home-screen-action{display:none}

/* Rows: one card each, same width, same height */
#profile-view.settings-new>.settings-card:not(.app-install-card){display:grid;gap:10px;overflow:visible;margin:0 0 14px;border:0;background:none;box-shadow:none}
#profile-view.settings-new>.settings-card>.settings-row{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:0 14px;width:100%;min-height:66px;margin:0;padding:11px 14px;border:1px solid var(--sd-line)!important;border-radius:18px;background:var(--sd-card);box-shadow:none;color:var(--sd-ink);text-align:left}
#profile-view.settings-new>.settings-card>.settings-row[hidden]{display:none}
#profile-view.settings-new>.settings-card>.settings-row-button:hover{background:#f6faf7}
#profile-view.settings-new>.settings-card>.settings-row-button:active{background:#edf5ef}
:root[data-theme="dark"] #profile-view.settings-new>.settings-card>.settings-row-button:hover,:root[data-theme="dark"] #profile-view.settings-new>.settings-card>.settings-row-button:active{background:#1e2e24}
#profile-view.settings-new .settings-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
#profile-view.settings-new .settings-row strong{font-size:16px;font-weight:700;line-height:1.25;color:var(--sd-ink);overflow-wrap:anywhere}
#profile-view.settings-new .settings-row small{font-size:12.5px;font-weight:500;line-height:1.35;color:var(--sd-mute);overflow-wrap:anywhere}
#profile-view.settings-new .settings-chevron{color:var(--sd-chev);font-size:26px;font-weight:300;line-height:1;padding-left:2px}

/* Icons: line icon, soft tint tile */
#profile-view.settings-new .settings-icon.sd-icon{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0!important;padding:0;border-radius:14px;background:var(--bg,#eef2f6)!important;color:var(--c,#475569);box-shadow:none;font-size:21px;line-height:1}
#profile-view.settings-new .settings-icon.sd-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;filter:none}
:root[data-theme="dark"] #profile-view.settings-new .settings-icon.sd-icon{background:var(--bgd,#223128)!important;color:var(--cd,var(--c,#cbd5e1))}
#profile-view.settings-new .sd-icon[data-k=theme]{--c:#7c3aed;--bg:#f1eaff;--bgd:#2b2342;--cd:#b9a0ff}
#profile-view.settings-new .sd-icon[data-k=language]{--c:#2563eb;--bg:#e6eeff;--bgd:#1b2a4a;--cd:#8db4ff}
#profile-view.settings-new .sd-icon[data-k=saved]{--c:#16a34a;--bg:#e5f6ea;--bgd:#17331f;--cd:#6fdc8c}
#profile-view.settings-new .sd-icon[data-k=share]{--c:#0d9488;--bg:#dcf6f2;--bgd:#143531;--cd:#5eead4}
#profile-view.settings-new .sd-icon[data-k=bell]{--c:#d97706;--bg:#fff1d9;--bgd:#3a2d14;--cd:#fbbf24}
#profile-view.settings-new .sd-icon[data-k=sound]{--c:#d97706;--bg:#fff1d9;--bgd:#3a2d14;--cd:#fbbf24}
#profile-view.settings-new .sd-icon[data-k=perm]{--c:#ea580c;--bg:#ffeadd;--bgd:#3b2316;--cd:#fb9d6b}
#profile-view.settings-new .sd-icon[data-k=switch]{--c:#2563eb;--bg:#e6eeff;--bgd:#1b2a4a;--cd:#8db4ff}
#profile-view.settings-new .sd-icon[data-k=newshop]{--c:#16a34a;--bg:#e5f6ea;--bgd:#17331f;--cd:#6fdc8c}
#profile-view.settings-new .sd-icon[data-k=myshops]{--c:#2563eb;--bg:#e6eeff;--bgd:#1b2a4a;--cd:#8db4ff}
#profile-view.settings-new .sd-icon[data-k=phone]{--c:#475569;--bg:#eaeff5;--bgd:#222d36;--cd:#cbd5e1}
#profile-view.settings-new .sd-icon[data-k=storage]{--c:#475569;--bg:#eaeff5;--bgd:#222d36;--cd:#cbd5e1}
#profile-view.settings-new .sd-icon[data-k=calendar]{--c:#16a34a;--bg:#e5f6ea;--bgd:#17331f;--cd:#6fdc8c}
#profile-view.settings-new .sd-icon[data-k=updates]{--c:#0d9488;--bg:#dcf6f2;--bgd:#143531;--cd:#5eead4}
#profile-view.settings-new .sd-icon[data-k=refresh]{--c:#2563eb;--bg:#e6eeff;--bgd:#1b2a4a;--cd:#8db4ff}
#profile-view.settings-new .sd-icon[data-k=contact]{--c:#16a34a;--bg:#e5f6ea;--bgd:#17331f;--cd:#6fdc8c}
#profile-view.settings-new .sd-icon[data-k=about]{--c:#64748b;--bg:#eaeff5;--bgd:#222d36;--cd:#cbd5e1}
#profile-view.settings-new .sd-icon[data-k=speed]{--c:#d97706;--bg:#fff1d9;--bgd:#3a2d14;--cd:#fbbf24}
#profile-view.settings-new .settings-icon.sd-icon .alerts-count{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border:2px solid var(--sd-card);border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;line-height:16px;text-align:center}

/* Light / Dark and English / Myanmar: one segmented control with a sliding green pill */
#profile-view.settings-new .settings-segment{position:relative;display:grid;grid-template-columns:1fr 1fr;width:152px;height:40px;flex:none;padding:0;gap:0;overflow:visible;border:0;border-radius:12px;background:var(--sd-seg)!important;isolation:isolate}
#profile-view.settings-new .settings-segment::before{display:block;content:"";position:absolute;inset:3px auto 3px 3px;width:calc(50% - 3px);border-radius:9px;background:linear-gradient(180deg,#2aa845,#17852f);box-shadow:0 1px 3px #0f5b2040;z-index:-1;transform:translateX(0);transition:transform .26s cubic-bezier(.22,.75,.25,1)}
#profile-view.settings-new .settings-segment[data-selected="right"]::before{transform:translateX(100%)}
#profile-view.settings-new .settings-segment button,#profile-view.settings-new .settings-segment button.selected{min-width:0;min-height:0;height:40px;padding:0 6px!important;border:0;border-radius:9px;background:transparent!important;box-shadow:none;color:var(--sd-segtx)!important;font-size:13px!important;font-weight:700}
#profile-view.settings-new .settings-segment[data-selected="left"] button:first-child,#profile-view.settings-new .settings-segment[data-selected="right"] button:last-child{color:#fff!important}
#profile-view.settings-new .settings-row:has(.settings-segment)>.settings-segment{grid-column:3;grid-row:1;justify-self:end}

/* Switch, storage bar, status pills */
#profile-view.settings-new .settings-toggle{width:52px;height:30px}
#profile-view.settings-new .settings-toggle span::after{width:24px;height:24px}
#profile-view.settings-new .settings-toggle input:checked+span{background:linear-gradient(180deg,#2aa845,#17852f)}
#profile-view.settings-new .settings-toggle input:checked+span::after{transform:translateX(22px)}
#profile-view.settings-new .storage-meter{width:min(100%,260px);height:8px;margin-top:8px;border-radius:999px;background:#e3eaf1}
:root[data-theme="dark"] #profile-view.settings-new .storage-meter{background:#2a3a30}
#profile-view.settings-new .storage-meter>i{border-radius:999px;background:linear-gradient(180deg,#34c759,#16a34a)}
#profile-view.settings-new .offline-status,#profile-view.settings-new .settings-status{border:0;border-radius:999px;background:#e5f6ea;color:#157a2f;font-size:12.5px;font-weight:700}
#profile-view.settings-new .settings-status{padding:5px 12px}
:root[data-theme="dark"] #profile-view.settings-new .offline-status,:root[data-theme="dark"] #profile-view.settings-new .settings-status{background:#1b3324;color:#7ae495}
#profile-view.settings-new .settings-row:has(#offline-status)>#offline-status{grid-column:2/-1;grid-row:2;justify-self:start;margin-top:9px}
#profile-view.settings-new .settings-outline-button{min-height:36px;padding:7px 14px;border:1.5px solid #17852f;border-radius:999px;background:transparent;color:#157a2f;font-size:13px;font-weight:700}
#profile-view.settings-new .settings-detail{margin:-2px 2px 0;padding:12px 16px;border:1px solid var(--sd-line);border-radius:14px;background:var(--sd-card);color:var(--sd-mute);font-size:13px;line-height:1.55}

@media(max-width:850px){
 #profile-view.settings-new>.settings-card:not(.app-install-card){gap:8px}
 #profile-view.settings-new>.settings-card>.settings-row{min-height:64px;padding:10px 12px;gap:0 12px;border-radius:16px}
 #profile-view.settings-new>.settings-card>.settings-row{grid-template-columns:42px minmax(0,1fr) auto}
 #profile-view.settings-new .settings-icon.sd-icon{width:42px;height:42px;border-radius:13px}
 #profile-view.settings-new .settings-header h2{font-size:28px}
 #profile-view.settings-new .settings-row strong{font-size:15.5px}
 #profile-view.settings-new .settings-row small{font-size:12px}
 #profile-view.settings-new .settings-segment{width:136px;height:38px}
 #profile-view.settings-new .settings-segment button{height:38px;font-size:12.5px!important}
}
@media(max-width:380px){
 #profile-view.settings-new>.settings-card>.settings-row{grid-template-columns:38px minmax(0,1fr) auto;gap:0 10px;padding-inline:10px}
 #profile-view.settings-new .settings-icon.sd-icon{width:38px;height:38px}
 #profile-view.settings-new .settings-icon.sd-icon svg{width:21px;height:21px}
 #profile-view.settings-new .settings-segment{width:124px}
 #profile-view.settings-new .settings-segment button{padding:0 4px!important;font-size:12px!important}
 #profile-view.settings-new .settings-row small{font-size:11.5px}
}
/* 1.1.578 owner (PC screenshot): the GearHub owner's "Shop updates" row has more than icon + text + button: the Auto update controls are one more child. In the 3-column row they landed in the 44px icon column
   and the text ran down one letter per line. The button stays in column 3, the Auto update controls sit under the text and use the full width. */
#profile-view.settings-new>.settings-card>#shop-release-control>.settings-outline-button{grid-column:3;grid-row:1;justify-self:end;align-self:center;max-width:100%;white-space:normal;text-align:center}
#profile-view.settings-new>.settings-card>#shop-release-control>.release-auto{grid-column:2/-1;grid-row:2;margin-top:10px;padding-left:0}
#profile-view.settings-new #shop-release-control .release-auto-switch b,#profile-view.settings-new #shop-release-control .release-auto-time b{color:var(--sd-ink)}
#profile-view.settings-new #shop-release-control .release-auto small{color:var(--sd-mute)}
:root[data-theme="dark"] #profile-view.settings-new #shop-release-control .release-auto-time select{background:#1e2e24;border-color:#2c4332;color:#eaf2ec}
@media(max-width:650px){
 #profile-view.settings-new>.settings-card>#shop-release-control>.settings-outline-button{grid-column:2/-1;grid-row:2;justify-self:start;margin-top:8px}
 #profile-view.settings-new>.settings-card>#shop-release-control>.release-auto{grid-row:3}
}
/* Narrow phones (and Myanmar text, which is longer): the Light/Dark and English/မြန်မာ control goes under the text, full width, so nothing wraps in a squeeze. */
@media(max-width:360px){
 #profile-view.settings-new .settings-row:has(.settings-segment)>.settings-segment{grid-column:2/-1;grid-row:2;justify-self:stretch;width:auto;margin-top:10px}
}
@media(max-width:430px){
 :root[lang="my"] #profile-view.settings-new .settings-row:has(.settings-segment)>.settings-segment{grid-column:2/-1;grid-row:2;justify-self:stretch;width:auto;margin-top:10px}
}
@media(min-width:851px){
 #profile-view.settings-new>.settings-card>.settings-row{min-height:72px;padding:14px 20px;gap:0 16px;grid-template-columns:48px minmax(0,1fr) auto}
 #profile-view.settings-new .settings-icon.sd-icon{width:48px;height:48px}
 #profile-view.settings-new .settings-icon.sd-icon svg{width:25px;height:25px}
 #profile-view.settings-new>.settings-card>.settings-row-button:hover{background:#f6faf7}
}

/* 1.1.268 owner: the Settings top picture is the owner's own picture (status bar, logo and pill removed:
   public/images/settings-banner.jpg). The app draws the shop logo tile and the owner's pill on top. Settings only. */
#profile-view.settings-new>.settings-profile-hero{min-height:124px;padding-top:10px;padding-bottom:30px;border:0;box-shadow:none;background:url("/images/settings-banner.jpg?v=1.1.268b") center bottom/cover no-repeat #13792f!important}
:root[data-theme="dark"] #profile-view.settings-new>.settings-profile-hero{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230b5524'/%3E%3Cstop offset='.55' stop-color='%2313792f'/%3E%3Cstop offset='1' stop-color='%232a993c'/%3E%3C/linearGradient%3E%3CradialGradient id='h' cx='.85' cy='.05' r='.65'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.4'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3ClinearGradient id='c' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23d5e8da'/%3E%3C/linearGradient%3E%3ClinearGradient id='l' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%239fd52a'/%3E%3Cstop offset='.55' stop-color='%23d3ee38'/%3E%3Cstop offset='1' stop-color='%23f0f85c'/%3E%3C/linearGradient%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='1'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='400' height='150' fill='url(%23s)'/%3E%3Crect width='400' height='150' fill='url(%23h)'/%3E%3Cg fill='url(%23c)' filter='url(%23b)'%3E%3Cg opacity='.97'%3E%3Ccircle cx='336' cy='36' r='13'/%3E%3Ccircle cx='356' cy='26' r='19'/%3E%3Ccircle cx='380' cy='22' r='21'/%3E%3Ccircle cx='402' cy='30' r='16'/%3E%3Crect x='322' y='32' width='96' height='17' rx='8'/%3E%3C/g%3E%3Cg opacity='.95'%3E%3Ccircle cx='166' cy='92' r='11'/%3E%3Ccircle cx='184' cy='82' r='16'/%3E%3Ccircle cx='206' cy='78' r='19'/%3E%3Ccircle cx='228' cy='86' r='13'/%3E%3Crect x='154' y='88' width='86' height='15' rx='7'/%3E%3C/g%3E%3Cg opacity='.85'%3E%3Ccircle cx='296' cy='80' r='10'/%3E%3Ccircle cx='313' cy='72' r='14'/%3E%3Ccircle cx='332' cy='77' r='10'/%3E%3Crect x='286' y='78' width='56' height='12' rx='6'/%3E%3C/g%3E%3Cg opacity='.55'%3E%3Ccircle cx='96' cy='100' r='8'/%3E%3Ccircle cx='110' cy='94' r='11'/%3E%3Ccircle cx='125' cy='99' r='8'/%3E%3Crect x='88' y='98' width='45' height='9' rx='4'/%3E%3C/g%3E%3C/g%3E%3Cpath d='M0 112C110 98 220 112 300 94S382 66 400 60V150H0z' fill='url(%23l)'/%3E%3Cpath d='M0 122C110 110 225 122 305 106S385 80 400 76V150H0z' fill='%235dbd2e' opacity='.5'/%3E%3Cpath d='M0 131C110 120 230 128 310 114S388 92 400 88V150H0z' fill='%23111a14'/%3E%3C/svg%3E") center bottom/cover no-repeat #13792f!important}
#profile-view.settings-new .sd-admin-pill{padding:7px 15px 7px 11px;font-size:15px;border-color:#d4ee3a;background:linear-gradient(180deg,#1c742b,#0e5a20);box-shadow:0 0 0 3px #d4ee3a2e,0 6px 14px #0004}
#profile-view.settings-new .sd-divider{background:#ffffffc0}

/* 1.1.268 owner: logo tile and Admin Dashboard pill at the picture's size, so the right cloud shows. */
@media(max-width:850px){
 #profile-view.settings-new .settings-profile-avatar{flex:0 0 72px;width:72px;height:72px;border-radius:20px;padding:6px}
 #profile-view.settings-new .sd-admin{gap:10px}
 #profile-view.settings-new .sd-divider{height:52px}
 #profile-view.settings-new .sd-admin-pill{gap:6px;padding:6px 13px 6px 9px;font-size:14px;border-width:2px}
 #profile-view.settings-new .sd-admin-pill svg{width:20px;height:20px}
}

/* 1.1.539 owner: Notifications (covered by Permissions), App speed (now in Skyler) and Add to Home Screen (Skyler reminds) are no longer Settings rows */
.settings-alerts-row.alerts-folded,#app-speed-action,#home-screen-action{display:none!important}
