/* Task center glass: decoration stays behind content and never receives input. */
html body.merchant-page #tasks { --task-blue:#1764dc;--task-ink:#202d43;--task-secondary:#5b6b81; }
html body.merchant-page #tasks .task-board { border:0;background:none;overflow:visible;border-radius:0;box-shadow:none; }
html body.merchant-page #tasks .task-board-head { display:none; }
html body.merchant-page #tasks .task-card-list {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch;
 background:radial-gradient(ellipse at 3% 8%,#c9e8fa80,transparent 44%),radial-gradient(ellipse at 94% 28%,#ddd6fa70,transparent 44%),radial-gradient(ellipse at 28% 76%,#cceee580,transparent 38%);
}
html body.merchant-page #tasks .task-empty { grid-column:1 / -1;padding:48px 24px;border:1px solid #fff;border-radius:24px;background:#ffffffb3; }
html body.merchant-page #tasks .task-order {
 --task-accent:#506781;--task-tint:#eef2f8;
 position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 grid-template-areas:"identity identity" "subject subject" "progress payment" "next next" "actions actions";
 grid-template-rows:auto auto 1fr auto auto;gap:18px 24px;align-items:start;
 min-width:0;width:100%;margin:0;padding:24px;border:1px solid #ffffffd9;border-radius:26px;background:transparent;
 box-shadow:0 8px 30px #35547b0b,0 1px 3px #253e6512;transition:box-shadow .22s ease,border-color .22s ease;
}
html body.merchant-page #tasks .task-order.is-attention { border-color:#fff;box-shadow:0 8px 30px #35547b0b,0 1px 3px #253e6512; }
html body.merchant-page #tasks .task-status-active { --task-accent:#13765b;--task-tint:#e6f5ed; }
html body.merchant-page #tasks :is(.task-status-paused,.task-status-exhausted) { --task-accent:#975b12;--task-tint:#fcf0db; }
html body.merchant-page #tasks :is(.task-status-analyzing,.task-status-pending_review) { --task-accent:#6b51af;--task-tint:#eee9fa; }
html body.merchant-page #tasks .task-status-done { --task-accent:#2369a9;--task-tint:#e8f2fc; }
html body.merchant-page #tasks .task-order > * { min-width:0;overflow-wrap:anywhere;position:relative;z-index:1; }
html body.merchant-page #tasks .task-order > .task-card-surface {
 position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;overflow:hidden;
 background:linear-gradient(135deg,#ffffffb8,#ffffff73 50%,#ffffffa6);
 -webkit-backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) saturate(1.15);
 backdrop-filter:blur(12px) url(#task-card-lens) saturate(1.15);
 box-shadow:inset 0 1px 0 #fff,inset 1px 0 0 #ffffffa6,inset 0 -1px 0 #b1c5dc35;
}
html body.merchant-page #tasks .task-card-surface::after {
 content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
 background:linear-gradient(125deg,transparent 20%,#fff9 45%,transparent 70%);opacity:0;
 transform:translateX(-20%);transition:opacity .3s ease,transform .45s cubic-bezier(.2,.7,.3,1);
}
html body.merchant-page #tasks .task-order-id { grid-area:identity;display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px 12px; }
html body.merchant-page #tasks .task-order-id strong { font-size:14px;line-height:1.5;letter-spacing:.02em;color:#52657c;font-weight:650;font-variant-numeric:tabular-nums; }
html body.merchant-page #tasks .task-category { padding:0 0 0 12px;border:0;border-left:1px solid #bcc9d673;border-radius:0;background:none;color:var(--task-secondary);white-space:normal;font-size:11px;font-weight:500; }
html body.merchant-page #tasks .task-order-id .status { margin-left:auto;display:inline-flex;gap:6px;align-items:center;padding:5px 10px;border:1px solid #ffffffa3;border-radius:20px;background:var(--task-tint);color:var(--task-accent);font-size:11px;line-height:1.4;white-space:nowrap;font-weight:600; }
html body.merchant-page #tasks .task-order-id .status::before { content:"";width:5px;height:5px;border-radius:50%;background:currentColor; }
html body.merchant-page #tasks .task-order-subject { grid-area:subject; }
html body.merchant-page #tasks .task-label-row { gap:7px;margin-bottom:9px; }
html body.merchant-page #tasks .task-type-pill { padding:0;background:none;border:0;color:#586c86;font-size:11px;font-weight:500;border-radius:0; }
html body.merchant-page #tasks .task-pool-badge { padding:2px 7px;background:#e9efff90;border:1px solid #d5def05c;color:#5268a0;box-shadow:none;animation:none;border-radius:5px;font-size:10px; }
html body.merchant-page #tasks .task-keyword-preview { color:var(--task-ink);font-size:19px;line-height:1.55;letter-spacing:-.025em;font-weight:650;overflow-wrap:anywhere; }
html body.merchant-page #tasks .task-keyword-details { margin-top:7px;color:#536e95;font-size:11px; }
html body.merchant-page #tasks .task-keyword-details summary { min-height:24px;cursor:pointer;width:fit-content; }
html body.merchant-page #tasks .task-keyword-details p { margin:8px 0 0;line-height:1.65; }
html body.merchant-page #tasks .task-note { display:block;margin-top:7px; }
html body.merchant-page #tasks .task-order-progress { grid-area:progress;padding:16px 0 0;border-top:1px solid #c5d2e24d; }
html body.merchant-page #tasks .task-order-payment { grid-area:payment;padding:16px 0 0;border-top:1px solid #c5d2e24d; }
html body.merchant-page #tasks .task-field-label { display:block;margin:0 0 7px;color:#627187;font-size:11px;line-height:1.5;font-weight:500; }
html body.merchant-page #tasks .task-metric { display:block;font-size:29px;line-height:1.25;letter-spacing:-.045em;font-weight:600;font-variant-numeric:tabular-nums;color:var(--task-ink); }
html body.merchant-page #tasks .task-metric span { font-size:13px;font-weight:400;letter-spacing:0;color:#65768b; }
html body.merchant-page #tasks .task-order small { display:block;color:#627187;font-size:11px;line-height:1.65; }
html body.merchant-page #tasks .task-progress { margin:11px 0 7px;height:5px;border-radius:5px;background:#cbd7e65c;max-width:180px;overflow:hidden; }
html body.merchant-page #tasks .task-progress i { background:linear-gradient(90deg,#75abf0,#4585df);border-radius:5px; }
html body.merchant-page #tasks .task-order-next { grid-area:next;display:block;padding:12px 14px;border:1px solid #ffffffa6;border-radius:12px;background:#eef3fa80; }
html body.merchant-page #tasks .task-order-next strong { display:block;margin:0 0 3px;font-size:12px;font-weight:600;color:#43546c; }
html body.merchant-page #tasks .task-order-next p { margin:0;color:#5b6b81;font-size:11px;line-height:1.7; }
html body.merchant-page #tasks .task-order-actions { grid-area:actions;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:0; }
html body.merchant-page #tasks .task-order-actions .btn { min-height:38px;padding:8px 16px;white-space:nowrap;border-radius:20px;font-size:12px;box-shadow:none;transition:transform .18s ease,background .18s ease; }
html body.merchant-page #tasks .task-order-actions .btn-primary { color:#fff;border:1px solid #2172e8;background:linear-gradient(180deg,#3786f1,#1764dc);box-shadow:inset 0 1px 0 #ffffff40,0 3px 8px #1764dc24; }
html body.merchant-page #tasks .task-order-actions :is(.btn-warning,.btn-success) { color:#435d7e;border:1px solid #cfdaea;background:#ffffff80; }
html body.merchant-page #tasks .task-more { position:relative; }
html body.merchant-page #tasks .task-more summary { min-height:38px;display:flex;align-items:center;justify-content:center;padding:8px 14px;border:1px solid #cfdaea;border-radius:20px;background:#ffffff80;color:#52657e;font-size:12px;cursor:pointer; }
html body.merchant-page #tasks .task-more summary::after { content:"···";font-weight:700;margin-left:6px; }
html body.merchant-page #tasks .task-order:has(.task-more[open]) { z-index:4; }
html body.merchant-page #tasks .task-more[open] > div { z-index:20;right:0;left:auto;min-width:150px;padding:6px;border:1px solid #e3eaf3;border-radius:15px;background:#fff;box-shadow:0 14px 35px #253e6526; }
html body.merchant-page #tasks .task-more[open] .btn { justify-content:flex-start;border-radius:9px; }
html body.merchant-page #tasks :is(button,summary):focus-visible { outline:3px solid #2378e4;outline-offset:3px; }
html body.merchant-page #tasks .task-overview { gap:0;padding:20px 0;background:linear-gradient(120deg,#fafdffcc,#f0f4ffab);border:1px solid #fff;border-radius:22px;box-shadow:0 6px 24px #39547b06; }
html body.merchant-page #tasks .task-overview > div { min-height:0;gap:8px;padding:0 24px;background:none;border:0;border-radius:0; }
html body.merchant-page #tasks .task-overview > div + div { border-left:1px solid #cdd9e64d; }
html body.merchant-page #tasks .task-overview strong { font-size:30px;letter-spacing:-.04em;font-weight:600;color:#2d4567; }
html body.merchant-page #tasks .task-overview > div:nth-child(1) strong { color:#9a6b30; }
html body.merchant-page #tasks .task-overview > div:nth-child(2) strong { color:#25826f; }
html body.merchant-page #tasks .task-overview > div:nth-child(4) strong { color:#256fd0; }
html body.merchant-page #tasks .task-overview span { font-weight:500;color:#60728a; }
html body.merchant-page #tasks .task-guide { background:none;border:0;padding:8px 0;gap:14px;margin-bottom:6px; }
html body.merchant-page #tasks .task-guide-item { padding:4px 0; }
html body.merchant-page #tasks .task-guide-item > b { background:#edf2fa;color:#6c819e;border-radius:50%;width:24px;height:24px;flex-basis:24px; }
html body.merchant-page #tasks .task-status-tabs { gap:4px;flex-wrap:wrap;padding:5px;border:1px solid #ffffffa6;border-radius:16px;background:#e9eff780; }
html body.merchant-page #tasks .task-status-tabs button { padding:9px 12px;box-shadow:none;background:transparent;border:1px solid transparent;border-radius:11px;color:#586b84;font-size:12px; }
html body.merchant-page #tasks .task-status-tabs button[aria-selected="true"] { background:#ffffffde;color:#2366c1;border-color:#fff;box-shadow:0 2px 5px #31547e0e; }
html body.merchant-page #tasks .task-toolbar input { border-radius:12px;background:#ffffffa6; }
html body.merchant-page #tasks .task-center-header .btn-primary { background:linear-gradient(180deg,#3786f1,#1764dc);border-color:#2172e8;border-radius:20px;box-shadow:inset 0 1px 0 #ffffff40,0 3px 8px #1764dc24; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 html:not([data-ui-motion="off"]) body.merchant-page #tasks .task-order:hover { border-color:#fff;box-shadow:0 14px 36px #35547b16,0 1px 3px #253e6512; }
 html:not([data-ui-motion="off"]) body.merchant-page #tasks .task-order:hover .task-card-surface::after { opacity:.32;transform:translateX(15%); }
 html:not([data-ui-motion="off"]) body.merchant-page #tasks .task-order-actions .btn:active { transform:scale(.97); }
}
@supports (grid-template-rows:subgrid) {
 @media (min-width:1251px) {
  html body.merchant-page #tasks .task-order { grid-row:span 5;grid-template-rows:subgrid; }
 }
}
@media (max-width:1250px) {
 html body.merchant-page #tasks .task-card-list { grid-template-columns:minmax(0,1fr); }
 html body.merchant-page #tasks .task-order { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:600px) {
 html body.merchant-page #tasks .task-order { padding:20px;gap:16px 20px;border-radius:24px; }
 html body.merchant-page #tasks .task-order > .task-card-surface { backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) url(#task-card-mobile-lens) saturate(1.15); }
 html body.merchant-page #tasks .task-keyword-preview { font-size:18px; }
 html body.merchant-page #tasks .task-category { font-size:10px;padding-left:8px; }
 html body.merchant-page #tasks .task-order-id { gap:8px; }
 html body.merchant-page #tasks .task-metric { font-size:26px; }
 html body.merchant-page #tasks .task-order-actions .btn,html body.merchant-page #tasks .task-more summary { min-height:44px; }
 html body.merchant-page #tasks .task-overview { grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px; }
 html body.merchant-page #tasks .task-overview > div { padding:0 20px; }
 html body.merchant-page #tasks .task-overview > div:nth-child(3) { border-left:0; }
 html body.merchant-page #tasks .task-guide { grid-template-columns:1fr;gap:6px; }
 html body.merchant-page #tasks .task-center-header { align-items:flex-start; }
}
html[data-ui-material="solid"] body.merchant-page #tasks .task-card-list { background:none; }
html[data-ui-material="solid"] body.merchant-page #tasks .task-order > .task-card-surface { background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none; }
html[data-ui-material="solid"] body.merchant-page #tasks .task-card-surface::after { display:none; }
html[data-ui-motion="off"] body.merchant-page #tasks :is(.task-order,.task-card-surface::after,.btn) { transition:none;animation:none;transform:none; }
html[data-ui-motion="off"] body.merchant-page #tasks .task-card-surface::after { display:none; }
@media (prefers-reduced-motion:reduce) {
 html body.merchant-page #tasks :is(.task-order,.task-card-surface::after,.btn) { transition:none;animation:none;transform:none; }
 html body.merchant-page #tasks .task-card-surface::after { display:none; }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
 html body.merchant-page #tasks .task-order > .task-card-surface { background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none; }
 html body.merchant-page #tasks .task-card-surface::after { display:none; }
}
@supports not (backdrop-filter:blur(1px)) {
 html body.merchant-page #tasks .task-order > .task-card-surface { background:#fff; }
}

/* Standard dialogs only: custom resource-market dialogs keep their own layout. */
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) {
  padding:24px;overflow:hidden;background:#17233959;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
html body:is(.merchant-page,.admin-page) .modal > .modal-content:has(> .header) {
  box-sizing:border-box;width:min(680px,100%);max-height:calc(100dvh - 48px);margin:auto;padding:0 28px 26px;
  overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #ffffffb3;
  background:#fff;border-radius:20px;box-shadow:0 24px 90px #111b3240;color:#344054;overflow-wrap:anywhere;
}
html body:is(.merchant-page,.admin-page) .modal > .modal-content > .header {
  position:sticky;top:0;z-index:5;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;text-align:left;
  gap:16px;margin:0 -28px 24px;padding:22px 28px 18px;border-radius:0;border-bottom:1px solid #edf0f5;background:#fff;
}
html body:is(.merchant-page,.admin-page) .modal > .modal-content > .header h3 { margin:0;font-size:20px;line-height:1.4;font-weight:650;letter-spacing:-.035em;color:#253249; }
html body:is(.merchant-page,.admin-page) .modal > .modal-content > .header .btn { flex-shrink:0;min-height:34px;padding:7px 11px;background:#f6f7fa;border:1px solid #e9ecf2;border-radius:9px;color:#677185;box-shadow:none; }
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) .form-group { margin-bottom:18px; }
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) .form-group label { color:#536076;font-size:12px;line-height:1.6;margin-bottom:7px; }
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { box-sizing:border-box;max-width:100%;min-width:0;border-color:#dfe4ed;border-radius:10px;background:#fafbfd;color:#344054;box-shadow:none; }
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) :is(input,select,textarea):focus-visible { outline:2px solid #7b85c6;outline-offset:2px; }
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) :is(pre,.phrase) { white-space:pre-wrap;overflow-wrap:anywhere; }
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) .two-col { gap:18px; }
html body.merchant-page #taskModal > .modal-content { max-width:780px!important; }
html body.merchant-page #taskDetailModal > .modal-content,
html body.admin-page #taskReviewModal > .modal-content { width:min(960px,100%);max-width:960px!important; }
html body.admin-page #taskReviewContent .execution-summary { background:#f8f9fc;border-color:#e5e9f0;border-radius:12px;padding:18px; }
html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) :is(.btn-primary,.btn-success,.btn-danger) { box-shadow:none; }
@media (max-width:600px) {
  html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) { padding:12px; }
  html body:is(.merchant-page,.admin-page) .modal > .modal-content:has(> .header) { width:100%!important;max-height:calc(100dvh - 24px);padding:0 20px 20px!important;border-radius:16px; }
  html body:is(.merchant-page,.admin-page) .modal > .modal-content > .header { margin:0 -20px 20px;padding:18px 20px 16px; }
  html body:is(.merchant-page,.admin-page) .modal > .modal-content > .header h3 { font-size:18px; }
  html body:is(.merchant-page,.admin-page) .modal:has(> .modal-content > .header) :is(.two-col,.form-grid) { grid-template-columns:minmax(0,1fr); }
}
html body.merchant-page #taskModal > .modal-content { width:min(780px,100%); }
html body.merchant-page #taskModal .workspace-tabs { padding:5px;border-radius:12px;background:#f6f7fa;border:1px solid #eaedf3;box-shadow:none; }
html body.merchant-page #taskModal .workspace-tabs button { border-radius:8px;box-shadow:none;font-size:12px; }
html body.merchant-page #taskModal .workspace-tabs button[aria-selected="true"] { background:#fff;color:#4c5aa4;box-shadow:0 1px 4px #25324912; }
html body.merchant-page #taskModal .wizard-footer { border-top-color:#edf0f5; }
@media (max-width:600px) {
  html body:is(.merchant-page,.admin-page) .modal > .modal-content > .header .btn { min-width:44px;min-height:44px; }
}
