/* Direction 03: original MOKADI identity + distinct module emblems/left edges. */
body[data-wf-brand="1"] {
  --bg1:#171719; --bg2:#222225; --bg3:#252326; --bg4:#35151f;
  --header:rgba(21,21,24,.96); --header2:rgba(21,21,24,.98);
  --wf-tile-height:clamp(168px,calc((100vh - 250px)/3),216px);
  --wf-paper:#f6f5f3; --danger:#f38ea2;
  background:linear-gradient(143deg,transparent 63%,rgba(87,13,34,.3) 63%,rgba(87,13,34,.3) 75%,transparent 75%),
    linear-gradient(143deg,transparent 83%,#491324 83%,#27171e 100%),#19191c;
  background-attachment:fixed; background-size:auto; animation:none;
  color:var(--wf-paper);
}
body[data-wf-brand="1"] #dashboardView>header {height:88px;padding:12px 32px;background:var(--header);box-shadow:none;border-bottom:1px solid #ffffff14;}
body[data-wf-brand="1"] .brand {gap:18px;}
body[data-wf-brand="1"] .brand .wf {width:240px;height:62px;filter:none;opacity:1;}
body[data-wf-brand="1"] .brand .mk {height:54px;width:auto;filter:none;opacity:1;}
body[data-wf-brand="1"] .brand-sep {height:46px;background:#ffffff40;}
body[data-wf-brand="1"] .user-panel {background:#ffffff0b;border-color:#ffffff20;box-shadow:none;}
body[data-wf-brand="1"] #dashboardView>main {padding:30px 32px 40px;display:block;}
body[data-wf-brand="1"] .content-wrapper {width:100%;max-width:1456px;margin:0 auto;}
body[data-wf-brand="1"] .content-wrapper>h2 {font-size:20px;font-weight:500;letter-spacing:.035em;padding-bottom:14px;margin:0 0 20px;border-bottom:1px solid #ffffff2b;}
body[data-wf-brand="1"] .dashboard-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,var(--wf-tile-height));grid-auto-rows:var(--wf-tile-height);gap:16px;}
body[data-wf-brand="1"] .tile[data-wf-module] {
  --wf-accent:#d72c50;position:relative;isolation:isolate;display:block;
  aspect-ratio:auto;height:var(--wf-tile-height);min-height:0;min-width:0;width:100%;overflow:hidden;
  padding:0;border:1px solid #ffffff24;border-radius:14px;
  background:linear-gradient(142deg,#ffffff06,transparent 58%),#232326;
  box-shadow:0 10px 26px #0000001f;animation:none;opacity:1;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body[data-wf-brand="1"] .tile[data-wf-module]::before {
  content:"";position:absolute;inset:0 auto 0 0;width:6px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--wf-accent),white 18%),var(--wf-accent));
  z-index:2;pointer-events:none;opacity:1;mix-blend-mode:normal;
}
body[data-wf-brand="1"] .tile[data-wf-module]:not(.disabled)::after {content:none;}
body[data-wf-brand="1"] .tile[data-wf-module]:hover:not(.disabled) {transform:translateY(-3px);border-color:#ffffff55;box-shadow:0 14px 30px #0004;filter:none;}
body[data-wf-brand="1"] .tile[data-wf-module]:focus-visible {outline:3px solid var(--wf-accent);outline-offset:4px;}
body[data-wf-brand="1"] .tile[data-wf-module][hidden] {display:none!important;}
body[data-wf-brand="1"] .tile[data-wf-module="shiftflow"] {--wf-accent:#a74bf4;}
body[data-wf-brand="1"] .tile[data-wf-module="processflow"] {--wf-accent:#7ddc1d;}
body[data-wf-brand="1"] .tile[data-wf-module="autoflow"] {--wf-accent:#ffab05;}
body[data-wf-brand="1"] .tile[data-wf-module="payflow"] {--wf-accent:#1686ff;}
body[data-wf-brand="1"] .tile[data-wf-module="b2bflow"] {--wf-accent:#d98a58;}
body[data-wf-brand="1"] .tile[data-wf-module="serwisflow"] {--wf-accent:#00dccb;}
body[data-wf-brand="1"] .tile[data-wf-module="cashflow"] {--wf-accent:#05cc76;}
body[data-wf-brand="1"] .wf-tile-art {position:relative;display:flex;flex-direction:column;align-items:flex-start;width:100%;height:100%;padding:18px 18px 48px 22px;pointer-events:none;}
body[data-wf-brand="1"] .wf-tile-art::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(143deg,transparent 65%,#531325 65%,#811c37 100%);}
body[data-wf-brand="1"] .wf-tile-art::after {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(151deg,transparent 74%,#ad254938 74%,transparent 94%),linear-gradient(133deg,transparent 76%,#b42b4e39 76%,transparent 100%);}
body[data-wf-brand="1"] .wf-module-mark {display:block;width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 5px 6px #0003);flex:none;}
body[data-wf-brand="1"] .wf-module-name {display:block;margin-top:9px;line-height:1.12;font-size:32px;font-weight:750;letter-spacing:-.035em;white-space:nowrap;color:var(--wf-paper);}
body[data-wf-brand="1"] .wf-module-name .wf-flow {color:var(--wf-accent);}
body[data-wf-brand="1"] .wf-mokadi {position:absolute;bottom:12px;right:14px;width:45px;height:auto;object-fit:contain;opacity:1;}
body[data-wf-brand="1"] .tile[data-wf-module].disabled {opacity:.52;filter:grayscale(1);pointer-events:none;box-shadow:none;}
body[data-wf-brand="1"] .tile[data-wf-module].disabled::after {inset:auto auto 12px 16px;max-width:calc(100% - 84px);font-size:10px;letter-spacing:.025em;line-height:1.35;padding:6px 8px;white-space:normal;background:#101014d9;z-index:3;opacity:1;}
body[data-wf-brand="1"] .login-tile {background:linear-gradient(145deg,transparent 77%,#67162e99 77%),#242427;border-color:#ffffff24;}
body[data-wf-brand="1"] .login-wf-logo {height:68px;max-width:100%;filter:none;}
body[data-wf-brand="1"] .profile-modal {background:#242427;}
/* Compact account controls share the portal palette. */
body[data-wf-brand="1"] .user-avatar {background-color:#79263e!important;box-shadow:none;}
body[data-wf-brand="1"] .user-panel:hover {background:#ffffff12;transform:none;}
body[data-wf-brand="1"] .user-dropdown {top:calc(100% + 12px);width:258px;min-width:0;max-width:calc(100vw - 32px);padding:8px;background:linear-gradient(145deg,transparent 75%,#5b172833 75%),#242427;border:1px solid #ffffff29;border-top:2px solid #a03955;border-radius:14px;box-shadow:0 16px 40px #0007;}
body[data-wf-brand="1"] .user-dropdown a {color:#f6f5f3;padding:12px 13px;border-radius:8px;font-size:14px;line-height:1.4;}
body[data-wf-brand="1"] .user-dropdown a:hover {background:#ffffff0c;}
body[data-wf-brand="1"] .user-dropdown a:focus-visible {outline:2px solid #d48a9e;outline-offset:-2px;background:#72263c55;}
body[data-wf-brand="1"] .user-dropdown .divider {background:#ffffff1c;margin:7px 9px;}
body[data-wf-brand="1"] #authBtn:hover {background:#a039551c;}
body[data-wf-brand="1"] .profile-modal {border-radius:18px;border-color:#ffffff29;border-top:2px solid #a03955;box-shadow:0 20px 60px #0007;}
body[data-wf-brand="1"] .profile-info {background:#ffffff05;border-color:#ffffff18;}
body[data-wf-brand="1"] .profile-modal .field input {background:#18181c;border-color:#ffffff28;}
body[data-wf-brand="1"] .profile-modal .field input:focus {border-color:#bf6982;box-shadow:0 0 0 3px #a0395524;}
body[data-wf-brand="1"] .profile-modal .modal-btn.save {background:linear-gradient(135deg,#9d3653,#732238);box-shadow:none;}
body[data-wf-brand="1"] .profile-modal .modal-btn.save:hover {background:linear-gradient(135deg,#b64363,#8c2b45);box-shadow:none;}
body[data-wf-brand="1"] #logsModal {background:#242427!important;border-radius:18px!important;}
body[data-wf-brand="1"] .dashboard-grid {position:relative;}
body[data-wf-brand="1"][data-wf-tiles-pending="1"] .dashboard-grid {visibility:hidden;pointer-events:none;}
body[data-wf-brand="1"] .wf-tiles-status {position:absolute;top:220px;left:0;right:0;text-align:center;font-size:14px;color:#c9c5c7;}
body[data-wf-brand="1"] .wf-tiles-status[hidden] {display:none;}
@media (max-width:1199px) {
  body[data-wf-brand="1"] .wf-module-mark {width:72px;height:72px;}
  body[data-wf-brand="1"] .dashboard-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
  body[data-wf-brand="1"] .wf-module-name {font-size:28px;}
}
@media (max-width:960px) {
  body[data-wf-brand="1"] .wf-module-mark {width:64px;height:64px;}
  body[data-wf-brand="1"] .wf-tile-art {padding-top:14px;}
  body[data-wf-brand="1"] {--wf-tile-height:176px;}
  body[data-wf-brand="1"] .dashboard-grid {grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;}
  body[data-wf-brand="1"] .wf-module-name {font-size:28px;}
}
@media (max-width:700px) {
  body[data-wf-brand="1"] #dashboardView>header {height:78px;padding:10px 18px;}
  body[data-wf-brand="1"] .brand {gap:12px;}
  body[data-wf-brand="1"] .brand .wf {width:182px;height:48px;}
  body[data-wf-brand="1"] .brand .mk {height:40px;}
  body[data-wf-brand="1"] .brand-sep {height:36px;}
  body[data-wf-brand="1"] .user-panel {padding:6px;}
  body[data-wf-brand="1"] .user-info {display:none;}
  body[data-wf-brand="1"] #dashboardView>main {padding:24px 18px 32px;}
  body[data-wf-brand="1"] .dashboard-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  body[data-wf-brand="1"] .tile[data-wf-module] {height:156px;}
  body[data-wf-brand="1"] .wf-tile-art {padding:15px 12px 40px 16px;}
  body[data-wf-brand="1"] .wf-module-mark {width:54px;height:54px;}
  body[data-wf-brand="1"] .wf-module-name {font-size:21px;margin-top:7px;}
  body[data-wf-brand="1"] .wf-module-name .wf-flow {color:var(--wf-accent);}
body[data-wf-brand="1"] .wf-mokadi {width:37px;bottom:10px;right:11px;}
  body[data-wf-brand="1"] .content-wrapper>h2 {font-size:18px;margin-bottom:18px;}
  body[data-wf-brand="1"] .tile[data-wf-module].disabled::after {font-size:9px;left:12px;max-width:calc(100% - 66px);padding:4px;}
}
@media (max-width:370px) {
  body[data-wf-brand="1"] #dashboardView>header {padding:10px 12px;}
  body[data-wf-brand="1"] .brand {gap:8px;}
  body[data-wf-brand="1"] .brand .wf {width:145px;height:43px;}
  body[data-wf-brand="1"] .brand .mk {height:34px;}
  body[data-wf-brand="1"] #dashboardView>main {padding-left:14px;padding-right:14px;}
  body[data-wf-brand="1"] .wf-module-name {font-size:clamp(17px,5vw,18.5px);letter-spacing:-.045em;}
  body[data-wf-brand="1"] .wf-tile-art {padding-left:12px;padding-right:8px;}
}
@media (min-width:961px) and (max-height:860px) {
  body[data-wf-brand="1"] .wf-tile-art {padding-top:10px;}
  body[data-wf-brand="1"] .wf-module-mark {width:64px;height:64px;}
  body[data-wf-brand="1"] .wf-module-name {font-size:clamp(28px,2.2vw,30px);margin-top:7px;}
}
@media (prefers-reduced-motion:reduce) {
  body[data-wf-brand="1"] .tile[data-wf-module] {transition:none;}
  body[data-wf-brand="1"] .user-dropdown {animation:none;}
}
