/* Work opens over Profile, with the same rounded sheet and the existing product fields. */
#profile-sheet.profile-work-sheet{width:min(100%,720px);max-height:90dvh;padding:10px 12px calc(16px + env(safe-area-inset-bottom));background:#f4f9f7;overscroll-behavior:contain}
.profile-work-sheet .profile-sheet-x{z-index:4}
.wp-form{display:grid;gap:10px;margin:0;color:#19372e;text-align:left}
.wp-head{position:sticky;top:-1px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 40px 12px 2px;background:#f4f9f7}
.wp-head h2{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:21px;font-weight:800;line-height:1.4}
.wp-save{flex:0 0 auto;min-height:40px;padding:8px 16px;border:0;border-radius:10px;background:#078b2c;color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.wp-save:disabled{opacity:.6;cursor:wait}
.wp-fields{display:grid;gap:10px;min-width:0;margin:0;padding:0;border:0}
.wp-card{min-width:0;margin:0;padding:12px;border:1px solid #e6ece8;border-radius:14px;background:#fff;box-shadow:0 1px 4px #183b2010}
.wp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wp-grid label{display:grid;grid-template-rows:1fr auto;gap:6px;min-width:0;color:#19372e;font-size:12.5px;font-weight:750;line-height:1.5}
.wp-grid em{color:#d23c3c;font-style:normal}
#profile-sheet .wp-form input:not([type=file]),#profile-sheet .wp-form select,#profile-sheet .wp-form textarea{width:100%;min-width:0;margin:0;padding:10px;border:1px solid #d9dfdc;border-radius:8px;background:#fff;color:#1d3028;font:inherit;font-size:16px;font-weight:400;box-shadow:inset 0 1px 2px #10201806}
#profile-sheet .wp-form :is(input:not([type=file]),select){height:44px;min-height:44px}
#profile-sheet .wp-form textarea{display:block;min-height:150px;line-height:1.6;resize:vertical}
#profile-sheet .wp-form [hidden]{display:none}
.wp-new-category,.wp-extra{grid-column:1/-1}
.wp-extra{min-width:0;margin:0;padding:9px;border-radius:9px;background:#f2faf5}
.wp-extra summary{display:flex;align-items:center;gap:6px;cursor:pointer;color:#214635;font-size:11px;font-weight:750;line-height:1.5;list-style:none}
.wp-extra summary::-webkit-details-marker{display:none}
.wp-extra summary:after{content:'⌄';margin-left:auto;font-size:17px}
.wp-extra summary b{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#0b9234;color:#fff;font-size:21px;line-height:1}
.wp-extra[open]>.wp-grid{padding-top:12px}
.wp-images-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.wp-images-head>div{grid-row:1/3;min-width:0}
.wp-images-head h3{margin:0 0 5px;font-size:18px;font-weight:800;line-height:1.3}
.wp-images-head small{display:block;max-width:210px;color:#84918a;font-size:11px;line-height:1.6}
.wp-upload{display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 10px;border:1px solid #d6e9dd;border-radius:9px;background:#f0faf4;color:#227b3b;font-size:12px;font-weight:800;cursor:pointer}
.wp-images-head .photo-edit-open{grid-column:2;margin:0;padding:6px 8px;font-size:11px}
.wp-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.wp-thumbs:empty{display:none}
.wp-thumbs figure{position:relative;width:82px;margin:0;overflow:hidden;border:1px solid #d6e7db;border-radius:10px;background:#f4f8f5}
.wp-thumbs img{display:block;width:80px;height:74px;object-fit:cover}
.wp-thumbs button[data-wp-remove]{position:absolute;top:3px;right:3px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#14241acc;color:#fff;font-size:18px;cursor:pointer}
.wp-cover{display:block;width:100%;min-height:28px;padding:4px 2px;border:0;background:#eef7ef;color:#2d7340;font:inherit;font-size:10px;font-weight:700;cursor:pointer}
.wp-cover[aria-pressed=true]{background:#197a31;color:#fff}
.wp-language{display:flex;gap:3px;margin-bottom:8px;padding:2px;border-radius:9px;background:#f1f3f5}
.wp-language button{flex:1;min-width:0;min-height:38px;padding:6px;border:1px solid transparent;border-radius:9px;background:transparent;color:#233a2e;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
.wp-language button[aria-pressed=true]{border-color:#d7e9dd;background:#f0fbf4;color:#237d36}
.wp-status{margin:0;color:#ac2d25;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.wp-status:empty{display:none}
.wp-retry{padding:4px 8px;border:1px solid #b9d5be;border-radius:6px;background:#fff;color:#186b2d;font:inherit;cursor:pointer}
@media(min-width:851px){#profile-sheet.profile-work-sheet{inset:5vh 0 auto;border-radius:24px;max-height:90vh}.wp-card{padding:16px}.wp-head h2{font-size:24px}.wp-grid label{font-size:14px}}

.wp-grid label:has(input[name=name])>span{font-size:12px;white-space:nowrap}

/* 1.1.398 owner: Category in the Add Product sheet is a button that opens the main/sub category picker. */
.wp-field{display:grid;gap:6px;min-width:0;position:relative;color:#19372e;font-size:12.5px;font-weight:750;line-height:1.5}
.wp-field .wp-label em{color:#d23c3c;font-style:normal}
.wp-cat-trigger{display:block;width:100%;min-height:42px;padding:0 34px 0 12px;border:1px solid #cfd9d3;border-radius:12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 6 6 6-6 6' fill='none' stroke='%231b2a22' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center/16px 16px;color:#8a948e;font:inherit;font-size:15px;font-weight:500;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.wp-cat-trigger.has-value{color:#10201a;font-weight:650}
.wp-cat-new{justify-self:start;margin:0;padding:2px 2px;border:0;background:none;color:#1f7a35;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.wp-cat-select{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:0;pointer-events:none}
.wp-cat-new{position:absolute;right:0;top:0;padding:0}

/* 1.1.600: the restored-draft note and the save progress bar */
.wp-note{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:9px 12px;border-radius:12px;background:#e8f6ec;color:#14532d;font-size:14px;font-weight:700;line-height:1.4}
.wp-note[hidden],.wp-progress[hidden]{display:none}
.wp-fresh{flex:0 0 auto;min-height:32px;padding:4px 12px;border:1.5px solid #078b2c;border-radius:9px;background:#fff;color:#078b2c;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.wp-progress{position:relative;height:30px;border-radius:12px;background:#e3eee6;overflow:hidden}
.wp-progress i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:12px;background:linear-gradient(90deg,#27b04a,#078b2c);transition:width .25s ease}
.wp-progress span{position:relative;z-index:1;display:block;line-height:30px;text-align:center;color:#0b3d1c;font-size:13.5px;font-weight:800;mix-blend-mode:normal;text-shadow:0 0 6px #ffffffcc}

.wp-drive{margin-top:12px;display:grid;gap:5px}
.wp-drive label{display:grid;gap:5px;font-size:13px;font-weight:700;color:#1f3a2a}
.wp-drive input{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #cfe0d4;border-radius:12px;padding:0 12px;font:inherit;font-size:16px;background:#fff}
.wp-drive small{color:#84918a;font-size:11px;line-height:1.6}
.wp-drive-chip{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:2147483000;max-width:calc(100vw - 32px);background:#14532d;color:#fff;border-radius:999px;padding:10px 16px;font-size:13px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.25)}
